Change config prefix hide to disable
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
{{- $page.Scratch.Add "paige_index" slice -}}
|
||||
|
||||
{{- range where $page.RegularPagesRecursive.ByPublishDate.Reverse "Params.paige.search.hide_page" "ne" true -}}
|
||||
{{- range where $page.RegularPagesRecursive.ByPublishDate.Reverse "Params.paige.search.disable" "ne" true -}}
|
||||
{{- $page.Scratch.Add "paige_index" (dict
|
||||
"categories" .Params.categories
|
||||
"date" .PublishDate
|
||||
|
@@ -13,7 +13,7 @@
|
||||
{{ $updated := site.Lastmod.Format $format }}
|
||||
|
||||
{{ range $page.RegularPagesRecursive.ByPublishDate.Reverse }}
|
||||
{{ if not (.Param "paige.feed.hide_page") }}
|
||||
{{ if not (.Param "paige.feed.disable") }}
|
||||
{{ $subpages = $subpages | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@@ -16,7 +16,7 @@
|
||||
{{ $lastbuilddate = .Lastmod }}
|
||||
{{ end }}
|
||||
|
||||
{{ if not (.Param "paige.feed.hide_page") }}
|
||||
{{ if not (.Param "paige.feed.disable") }}
|
||||
{{ $subpages = $subpages | append . }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
@@ -1,21 +1,21 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $authors := partial "paige/authors.html" $page | and ($page.Parent.Param "paige.list_page.hide_authors" | not) }}
|
||||
{{ $authors := partial "paige/authors.html" $page | and ($page.Parent.Param "paige.list_page.disable_authors" | not) }}
|
||||
{{ $categories := $page.GetTerms "categories" }}
|
||||
{{ $date := $page.PublishDate | and ($page.Parent.Param "paige.list_page.hide_date" | not) }}
|
||||
{{ $date := $page.PublishDate | and ($page.Parent.Param "paige.list_page.disable_date" | not) }}
|
||||
{{ $dateformat := $page.Parent.Param "paige.date_format" | default ":date_long" }}
|
||||
{{ $description := $page.Description | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.hide_description" | not) }}
|
||||
{{ $description := $page.Description | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.disable_description" | not) }}
|
||||
{{ $draft := $page.Draft }}
|
||||
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
|
||||
{{ $flags := slice }}
|
||||
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
|
||||
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
|
||||
{{ $readingtime := $page.ReadingTime | and ($page.Parent.Param "paige.list_page.hide_reading_time" | not) }}
|
||||
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.list_page.hide_series" | not) }}
|
||||
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.hide_summary" | not) }}
|
||||
{{ $readingtime := $page.ReadingTime | and ($page.Parent.Param "paige.list_page.disable_reading_time" | not) }}
|
||||
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.list_page.disable_series" | not) }}
|
||||
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.disable_summary" | not) }}
|
||||
{{ $tags := $page.GetTerms "tags" }}
|
||||
{{ $textkeywords := eq ($page.Parent.Param "paige.keyword_style" | default "text") "text" }}
|
||||
{{ $title := $page.Title | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.hide_title" | not) }}
|
||||
{{ $title := $page.Title | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.list_page.disable_title" | not) }}
|
||||
{{ $titlelink := $page.RelPermalink }}
|
||||
|
||||
{{ if $draft }}
|
||||
@@ -39,7 +39,7 @@
|
||||
{{ end }}
|
||||
|
||||
{{ $class := delimit (slice "paige-page" "w-100" | append $flags | uniq | sort) " " }}
|
||||
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Parent.Param "paige.list_page.hide_keywords" | not) }}
|
||||
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Parent.Param "paige.list_page.disable_keywords" | not) }}
|
||||
|
||||
<div class="{{ $class }}">
|
||||
{{ with $title }}
|
||||
|
@@ -40,8 +40,8 @@
|
||||
{{ end }}
|
||||
|
||||
{{ $collections := slice }}
|
||||
{{ $pages := $page.RegularPages | and ($page.Param "paige.list_page.hide_pages" | not) }}
|
||||
{{ $sections := $page.Sections | and ($page.Param "paige.list_page.hide_sections" | not) }}
|
||||
{{ $pages := $page.RegularPages | and ($page.Param "paige.list_page.disable_pages" | not) }}
|
||||
{{ $sections := $page.Sections | and ($page.Param "paige.list_page.disable_sections" | not) }}
|
||||
|
||||
{{ if $page.IsHome }}
|
||||
{{ range $name, $taxonomy := site.Taxonomies }}
|
||||
@@ -51,7 +51,7 @@
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
||||
{{ $collections = $collections | and ($page.Param "paige.list_page.hide_collections" | not) }}
|
||||
{{ $collections = $collections | and ($page.Param "paige.list_page.disable_collections" | not) }}
|
||||
|
||||
{{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}
|
||||
{{ $pages = $page.Pages }}
|
||||
|
@@ -1,11 +1,11 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $edit := $page.Param "paige.edit" | and ($page.Param "paige.page.hide_edit" | not) }}
|
||||
{{ $edit := $page.Param "paige.edit" | and ($page.Param "paige.page.disable_edit" | not) }}
|
||||
{{ $first := templates.Exists "partials/paige/page-footer-first.html" }}
|
||||
{{ $history := $page.Param "paige.history" | and ($page.Param "paige.page.hide_history" | not) }}
|
||||
{{ $history := $page.Param "paige.history" | and ($page.Param "paige.page.disable_history" | not) }}
|
||||
{{ $last := templates.Exists "partials/paige/page-footer-last.html" }}
|
||||
{{ $next := $page.NextInSection | and ($page.Param "paige.page.hide_next" | not) }}
|
||||
{{ $prev := $page.PrevInSection | and ($page.Param "paige.page.hide_prev" | not) }}
|
||||
{{ $next := $page.NextInSection | and ($page.Param "paige.page.disable_next" | not) }}
|
||||
{{ $prev := $page.PrevInSection | and ($page.Param "paige.page.disable_prev" | not) }}
|
||||
|
||||
{{ if $page.File }}
|
||||
{{ if $edit }}
|
||||
|
@@ -1,22 +1,22 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $alert := $page.Param "paige.alert" | and ($page.Param "paige.page.hide_alert" | not) }}
|
||||
{{ $authors := partial "paige/authors.html" $page | and ($page.Param "paige.page.hide_authors" | not) }}
|
||||
{{ $alert := $page.Param "paige.alert" | and ($page.Param "paige.page.disable_alert" | not) }}
|
||||
{{ $authors := partial "paige/authors.html" $page | and ($page.Param "paige.page.disable_authors" | not) }}
|
||||
{{ $categories := $page.GetTerms "categories" }}
|
||||
{{ $date := and $page.IsPage $page.PublishDate | and ($page.Param "paige.page.hide_date" | not) }}
|
||||
{{ $date := and $page.IsPage $page.PublishDate | and ($page.Param "paige.page.disable_date" | not) }}
|
||||
{{ $dateformat := $page.Param "paige.date_format" | default ":date_long" }}
|
||||
{{ $description := $page.Description | markdownify | and ($page.Param "paige.page.hide_description" | not) }}
|
||||
{{ $description := $page.Description | markdownify | and ($page.Param "paige.page.disable_description" | not) }}
|
||||
{{ $first := templates.Exists "partials/paige/page-header-first.html" }}
|
||||
{{ $last := templates.Exists "partials/paige/page-header-last.html" }}
|
||||
{{ $link := $page.Params.link }}
|
||||
{{ $readingtime := $page.ReadingTime | and ($page.Param "paige.page.hide_reading_time" | not) }}
|
||||
{{ $series := $page.GetTerms "series" | and ($page.Param "paige.page.hide_series" | not) }}
|
||||
{{ $readingtime := $page.ReadingTime | and ($page.Param "paige.page.disable_reading_time" | not) }}
|
||||
{{ $series := $page.GetTerms "series" | and ($page.Param "paige.page.disable_series" | not) }}
|
||||
{{ $tags := $page.GetTerms "tags" }}
|
||||
{{ $textkeywords := eq ($page.Param "paige.keyword_style" | default "text") "text" }}
|
||||
{{ $title := $page.Title | markdownify | and ($page.Param "paige.page.hide_title" | not) }}
|
||||
{{ $toc := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) | and ($page.Param "paige.page.hide_toc" | not) }}
|
||||
{{ $title := $page.Title | markdownify | and ($page.Param "paige.page.disable_title" | not) }}
|
||||
{{ $toc := and $page.Content (ne $page.TableOfContents `<nav id="TableOfContents"></nav>`) | and ($page.Param "paige.page.disable_toc" | not) }}
|
||||
|
||||
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Param "paige.page.hide_keywords" | not) }}
|
||||
{{ $keywords := sort (append $categories $tags) "Title" | and ($page.Param "paige.page.disable_keywords" | not) }}
|
||||
|
||||
{{ if or $authors $date $description $first $keywords $last $readingtime $series $title $toc }}
|
||||
<header class="mw-100" id="paige-page-header">
|
||||
|
@@ -1,10 +1,10 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $copyright := $page.Param "paige.copyright" | default site.Copyright | markdownify | and ($page.Param "paige.site.hide_copyright" | not) }}
|
||||
{{ $copyright := $page.Param "paige.copyright" | default site.Copyright | markdownify | and ($page.Param "paige.site.disable_copyright" | not) }}
|
||||
{{ $credit := $page.Param "paige.credit" }}
|
||||
{{ $first := templates.Exists "partials/paige/footer-first.html" }}
|
||||
{{ $last := templates.Exists "partials/paige/footer-last.html" }}
|
||||
{{ $license := $page.Param "paige.license" | markdownify | and ($page.Param "paige.site.hide_license" | not) }}
|
||||
{{ $license := $page.Param "paige.license" | markdownify | and ($page.Param "paige.site.disable_license" | not) }}
|
||||
{{ $theme := "https://github.com/willfaught/paige" }}
|
||||
|
||||
{{ $target := partial "paige/target.html" (dict "page" $page "url" $theme) }}
|
||||
@@ -15,7 +15,7 @@
|
||||
{{ $credit = markdownify $credit }}
|
||||
{{ end }}
|
||||
|
||||
{{ $credit = $credit | and ($page.Param "paige.site.hide_credit" | not) }}
|
||||
{{ $credit = $credit | and ($page.Param "paige.site.disable_credit" | not) }}
|
||||
|
||||
{{ if or $copyright $credit $first $last $license }}
|
||||
<footer id="paige-site-footer">
|
||||
|
@@ -1,15 +1,15 @@
|
||||
{{ $page := . }}
|
||||
|
||||
{{ $basepath := path.Clean (urls.Parse (relLangURL "")).Path }}
|
||||
{{ $breadcrumbs := $page.Ancestors | and ($page.Param "paige.site.hide_breadcrumbs" | not) }}
|
||||
{{ $description := $page.Param "paige.description" | markdownify | and ($page.Param "paige.site.hide_description" | not) }}
|
||||
{{ $breadcrumbs := $page.Ancestors | and ($page.Param "paige.site.disable_breadcrumbs" | not) }}
|
||||
{{ $description := $page.Param "paige.description" | markdownify | and ($page.Param "paige.site.disable_description" | not) }}
|
||||
{{ $first := templates.Exists "partials/paige/site-header-first.html" }}
|
||||
{{ $last := templates.Exists "partials/paige/site-header-last.html" }}
|
||||
{{ $links := false }}
|
||||
{{ $menu := site.Menus.main | and ($page.Param "paige.site.hide_menu" | not) }}
|
||||
{{ $menu := site.Menus.main | and ($page.Param "paige.site.disable_menu" | not) }}
|
||||
{{ $pills := false }}
|
||||
{{ $tabs := false }}
|
||||
{{ $title := $page.Param "paige.title" | default site.Title | markdownify | and ($page.Param "paige.site.hide_title" | not) }}
|
||||
{{ $title := $page.Param "paige.title" | default site.Title | markdownify | and ($page.Param "paige.site.disable_title" | not) }}
|
||||
{{ $underline := false }}
|
||||
|
||||
{{ if eq $basepath "/" }}
|
||||
|
Reference in New Issue
Block a user