Fix: rss feed not to track admin/uninotes

This commit is contained in:
hyzen
2026-06-20 19:29:05 +05:30
parent b46e1aaa1c
commit ab40e7ac89
23 changed files with 26 additions and 1675 deletions

View File

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