Fix: rss feed

This commit is contained in:
hyzen
2026-06-21 01:29:09 +05:30
parent fd88efaeee
commit 35f1ce2a6a
2 changed files with 4 additions and 2 deletions

View File

@@ -38,9 +38,11 @@
{{- else }}
{{- $pages = $pctx.Pages }}
{{- end }}
{{- /* Exclude uninotes pages and the admin page from the feed */}}
{{- /* Exclude uninotes pages, admin, login, and signup from the feed */}}
{{- $pages = where $pages "Section" "ne" "uninotes" }}
{{- $pages = where $pages "RelPermalink" "ne" "/admin/" }}
{{- $pages = where $pages "RelPermalink" "ne" "/login/" }}
{{- $pages = where $pages "RelPermalink" "ne" "/signup/" }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $pages = $pages | first $limit }}