Fix: rss feed

This commit is contained in:
hyzen
2026-06-21 03:13:24 +05:30
parent 88b1fef9f8
commit 922c89e504
2 changed files with 4 additions and 10 deletions

View File

@@ -38,11 +38,13 @@
{{- else }}
{{- $pages = $pctx.Pages }}
{{- end }}
{{- /* Exclude uninotes pages, admin, login, and signup from the feed */}}
{{- /* Exclude uninotes pages, admin, login, signup, contact, and coming-soon 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/" }}
{{- $pages = where $pages "RelPermalink" "ne" "/contact/" }}
{{- $pages = where $pages "RelPermalink" "ne" "/coming-soon/" }}
{{- $limit := .Site.Config.Services.RSS.Limit }}
{{- if ge $limit 1 }}
{{- $pages = $pages | first $limit }}