mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-06-30 23:12:16 +02:00
Fix: rss feed
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user