Rename paigeexclude to paigehide

master
Will Faught 3 years ago
parent ade6eeff53
commit 8281e6357d

@ -187,7 +187,7 @@ Optional page parameters:
```yaml ```yaml
link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title link: "https://youtu.be/dQw4w9WgXcQ" # The reference for an anchor around the title
math: true # Enable math typesetting with KaTeX math: true # Enable math typesetting with KaTeX
paigeexcludesearch: true # Don't include this page in search results paigehidesearch: true # Don't include this page in search results
``` ```
Additional optional home page parameters: Additional optional home page parameters:
@ -208,7 +208,7 @@ paigeshowfullpages: true # Show full pages, not just page titles and description
Additional optional single page parameters: Additional optional single page parameters:
```yaml ```yaml
paigeexcluderss: true # Don't include this page in RSS feeds paigehiderss: true # Don't include this page in RSS feeds
``` ```
Example `config.yaml`: Example `config.yaml`:

@ -1,5 +1,5 @@
{{- $.Scratch.Add "index" slice -}} {{- $.Scratch.Add "index" slice -}}
{{- range where .Site.Pages "Params.paigeexcludesearch" "ne" true -}} {{- range where .Site.Pages "Params.paigehidesearch" "ne" true -}}
{{- $title := .Title | markdownify | plainify | htmlUnescape -}} {{- $title := .Title | markdownify | plainify | htmlUnescape -}}
{{- if and (not $title) .IsHome }} {{- if and (not $title) .IsHome }}
{{- $title = site.Title }} {{- $title = site.Title }}

@ -12,7 +12,7 @@
{{ if ge $limit 1 }} {{ if ge $limit 1 }}
{{ $pages = $pages | first $limit }} {{ $pages = $pages | first $limit }}
{{ end }} {{ end }}
{{ $pages = where $pages "Params.paigeexcluderss" "ne" true }} {{ $pages = where $pages "Params.paigehiderss" "ne" true }}
{{ $title := partial "paige-titles.html" . }} {{ $title := partial "paige-titles.html" . }}
{{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} {{ printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">

Loading…
Cancel
Save