diff options
| author | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-05 16:32:39 +0200 |
|---|---|---|
| committer | Nantha Sorubakanthan <nantha@mielota.com> | 2025-10-05 16:32:39 +0200 |
| commit | 2adb290449558b5e1b7a30bb9d25156ae0491445 (patch) | |
| tree | 16e50db54dfd71b45a9da436d5b957a4eea95773 /layouts/index.xml | |
| parent | fa492e710e0b055aad5364d2dcd5b5bffe1c2932 (diff) | |
Changes to rss handling
Diffstat (limited to 'layouts/index.xml')
| -rw-r--r-- | layouts/index.xml | 9 |
1 files changed, 1 insertions, 8 deletions
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 "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} - <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <channel> <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} on {{ end }}{{ .Site.Title }}{{ end }}</title> |
