From 2adb290449558b5e1b7a30bb9d25156ae0491445 Mon Sep 17 00:00:00 2001 From: Nantha Sorubakanthan Date: Sun, 5 Oct 2025 16:32:39 +0200 Subject: Changes to rss handling --- layouts/index.xml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'layouts') diff --git a/layouts/index.xml b/layouts/index.xml index 6ec821f..db5dd5c 100644 --- a/layouts/index.xml +++ b/layouts/index.xml @@ -2,15 +2,8 @@ {{- $authorName := .Site.Params.name }} {{- $pctx := . }} {{- if .IsHome }}{{ $pctx = .Site }}{{ end }} -{{- $pages := slice }} -{{- $pages = $pctx.RegularPages }} -{{- $pages = where $pages "Section" "blog" }} -{{- $limit := .Site.Config.Services.RSS.Limit }} -{{- if ge $limit 1 }} -{{- $pages = $pages | first $limit }} -{{- end }} +{{- $pages := where .Site.RegularPages "Params.index" true }} {{- printf "" | safeHTML }} - {{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }} -- cgit v1.2.3