Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/CaiJimmy/hugo-theme-stack.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Cai <github@jimmycai.com>2022-06-12 14:42:35 +0300
committerGitHub <noreply@github.com>2022-06-12 14:42:35 +0300
commite5f3cb11d59773e45aec0c57fb914e73dae211e0 (patch)
tree84c9f701aff509ec0e69ffd812f7180b47371bde /layouts/_default/rss.xml
parent6e5956b9056e246661782f316726d42f3e1c7356 (diff)
refactor: drop support for `hidden` field in front matter
Diffstat (limited to 'layouts/_default/rss.xml')
-rw-r--r--layouts/_default/rss.xml1
1 files changed, 0 insertions, 1 deletions
diff --git a/layouts/_default/rss.xml b/layouts/_default/rss.xml
index e9f3f1a..0d3170e 100644
--- a/layouts/_default/rss.xml
+++ b/layouts/_default/rss.xml
@@ -6,7 +6,6 @@
{{- else -}}
{{- $pages = $pctx.Pages -}}
{{- end -}}
-{{- $pages := where $pages "Params.hidden" "!=" true -}}
{{- $limit := .Site.Config.Services.RSS.Limit -}}
{{- if ge $limit 1 -}}
{{- $pages = $pages | first $limit -}}