From 7e526844f0bed3e12d595c75e802010991aa746b Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Sun, 5 Oct 2025 16:13:25 +0200 Subject: Only show blog in the rss feed --- layouts/index.xml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'layouts/index.xml') diff --git a/layouts/index.xml b/layouts/index.xml index 3af797c..6ec821f 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -1,20 +1,16 @@ {{- $authorEmail := .Site.Params.email }} - {{- $authorName := .Site.Params.name }} - {{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} {{- $pages := slice }} -{{- if or $.IsHome $.IsSection }} {{- $pages = $pctx.RegularPages }} -{{- else }} -{{- $pages = $pctx.Pages }} -{{- end }} +{{- $pages = where $pages "Section" "blog" }} {{- $limit := .Site.Config.Services.RSS.Limit }} {{- if ge $limit 1 }} {{- $pages = $pages | first $limit }} {{- end }} {{- printf "" | safeHTML }} + {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} -- cgit v1.2.3