Feat: add hiddenFromRss param and front matter

This commit is contained in:
Cell
2023-11-22 14:57:43 +08:00
parent a1833aaf41
commit 6f16b3ffe1
5 changed files with 7 additions and 2 deletions
+1
View File
@@ -19,6 +19,7 @@ categories:
- draft
hiddenFromHomePage: false
hiddenFromSearch: false
hiddenFromRss: false
summary:
resources:
- name: featured-image
+1
View File
@@ -19,6 +19,7 @@ categories:
- draft
hiddenFromHomePage: false
hiddenFromSearch: false
hiddenFromRss: false
summary:
resources:
- name: featured-image
+2
View File
@@ -359,6 +359,8 @@
hiddenFromHomePage = false
# FixIt 0.2.0 | NEW whether to hide a page from search results
hiddenFromSearch = false
# FixIt 0.2.18-lts.5 | NEW whether to hide a page from RSS feed
hiddenFromRss = false
# FixIt 0.2.0 | NEW whether to enable twemoji
twemoji = false
# whether to enable lightgallery
+1 -1
Submodule docs updated: 9e3a5b2625...87ddc375b3
+2 -1
View File
@@ -37,7 +37,8 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{- range where .Site.RegularPages "Type" "posts" | first (.Site.Params.home.rss | default 10) -}}
{{- if .Params.password }}{{ continue }}{{ end -}}
{{- $params := .Scratch.Get "params" -}}
{{- if $params.password | or $params.hiddenFromRss }}{{ continue }}{{ end -}}
{{- dict "Page" . "Site" .Site | partial "rss/item.html" -}}
{{- end -}}
</channel>