mirror of
https://github.com/hyzendust/hyzendust.github.io.git
synced 2026-07-01 07:22:17 +02:00
Fix: rss feed not to track admin/uninotes
This commit is contained in:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user