mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
✨ Feat: add hiddenFromRss param and front matter
This commit is contained in:
@@ -19,6 +19,7 @@ categories:
|
||||
- draft
|
||||
hiddenFromHomePage: false
|
||||
hiddenFromSearch: false
|
||||
hiddenFromRss: false
|
||||
summary:
|
||||
resources:
|
||||
- name: featured-image
|
||||
|
||||
@@ -19,6 +19,7 @@ categories:
|
||||
- draft
|
||||
hiddenFromHomePage: false
|
||||
hiddenFromSearch: false
|
||||
hiddenFromRss: false
|
||||
summary:
|
||||
resources:
|
||||
- name: featured-image
|
||||
|
||||
@@ -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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user