website

Personal website
git clone https://github.com/michaelneuper/website.git
README | Files | Log | Refs

commit 093d394de1f7e808af95f688d347a2e27d0627dd
parent f16d24e75b05d27aff36d425cfd740f13b682a2c
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Fri,  3 Nov 2023 16:02:42 +0200

Fix rss

Diffstat:
Mlayouts/_default/rss.xml | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml @@ -2,9 +2,9 @@ {{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}} {{- $pages := slice -}} {{- if or $.IsHome $.IsSection -}} -{{- $pages = (where (where $pctx.RegularPages ".Section" "post") "Kind" "page") -}} +{{- $pages = (where (where $pctx.RegularPages ".Section" "posts") "Kind" "page") -}} {{- else -}} -{{- $pages = (where (where $pctx.Pages ".Section" "post") "Kind" "page") -}} +{{- $pages = (where (where $pctx.Pages ".Section" "posts") "Kind" "page") -}} {{- end -}} {{- $limit := .Site.Config.Services.RSS.Limit -}} {{- if ge $limit 1 -}}