Skip to content

Commit

Permalink
🐛 Fix: .hiddenFormRss not taking effect
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Jul 10, 2024
1 parent e39d789 commit 45c71ef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/index.rss.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{- range .Scratch.Get "mainSectionPages" | first (.Site.Params.home.rss | default 10) -}}
{{- $params := partial "function/params.html" -}}
{{- /* TODO 0.4.0 待重构为去掉 `.page` 改用 hugo 推荐的 .Param 方法获取页面参数 */ -}}
{{- $params := .Params | merge site.Params.page -}}
{{- if $params.password | or $params.hiddenFromRss }}{{ continue }}{{ end -}}
{{- dict "Page" . "Site" .Site | partial "rss/item.html" -}}
{{- end -}}
Expand Down

0 comments on commit 45c71ef

Please sign in to comment.