Sync config names

master
Will Faught 5 months ago
parent 44da496691
commit 2503023fa4

@ -4,7 +4,7 @@
<browserconfig>
<msapplication>
<tile>
<TileColor>{{ $page.Param "paige.color" | default "#0d6efd" }}</TileColor>
<TileColor>{{ $page.Param "paige.site.color" | default "#0d6efd" }}</TileColor>
</tile>
</msapplication>
</browserconfig>

@ -15,7 +15,7 @@
"type": "image/png"
}
],
"theme_color": "{{ $page.Param `paige.color` | default `#0d6efd` }}",
"background_color": "{{ $page.Param `paige.color` | default `#0d6efd` }}",
"theme_color": "{{ $page.Param `paige.site.color` | default `#0d6efd` }}",
"background_color": "{{ $page.Param `paige.site.color` | default `#0d6efd` }}",
"display": "standalone"
}

@ -5,4 +5,4 @@
{{ $external := cond (urls.Parse $url).IsAbs (not (strings.HasSuffix $url site.BaseURL)) false }}
{{ return cond (and $external ($page.Param "paige.external_link_new_tab" | not | not)) "_blank" "" }}
{{ return cond (and $external ($page.Param "paige.site.external_link_new_tab" | not | not)) "_blank" "" }}

@ -1,6 +1,6 @@
{{ $page := . }}
{{ $dark := eq ($page.Param "paige.color_scheme") "dark" }}
{{ $dark := eq ($page.Param "paige.site.color_scheme") "dark" }}
{{ $lang := site.Language.LanguageCode | default site.LanguageCode }}
{{ $rtl := eq $page.Language.LanguageDirection "rtl" }}

@ -25,15 +25,15 @@
{{ end }}
{{ if fileExists "static/safari-pinned-tab.svg" }}
<link color="{{ $page.Param `paige.color` | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` }}" rel="mask-icon">
<link color="{{ $page.Param `paige.site.color` | default `#0d6efd` }}" href="{{ relLangURL `safari-pinned-tab.svg` }}" rel="mask-icon">
{{ end }}
{{ if fileExists "assets/site.webmanifest" }}
<link href="{{ (resources.Get `site.webmanifest` | resources.ExecuteAsTemplate `site.webmanifest` .).RelPermalink }}" rel="manifest">
{{ end }}
{{ $color := $page.Param "paige.color" | default "#0d6efd" }}
{{ $colorScheme := $page.Param "paige.color_scheme" | default "auto" }}
{{ $color := $page.Param "paige.site.color" | default "#0d6efd" }}
{{ $colorScheme := $page.Param "paige.site.color_scheme" | default "auto" }}
{{ $context := dict "color" $color "color_scheme" $colorScheme }}

@ -7,11 +7,11 @@
{{ $draft := $page.Draft }}
{{ $expired := and $page.ExpiryDate (lt $page.ExpiryDate now) }}
{{ $flags := slice }}
{{ $format := $page.Parent.Param "paige.date_format" | default ":date_long" }}
{{ $format := $page.Parent.Param "paige.site.date_format" | default ":date_long" }}
{{ $future := and $page.PublishDate (gt $page.PublishDate now) }}
{{ $link := $page.RelPermalink }}
{{ $modified := and $page.PublishDate $page.Lastmod (lt $page.PublishDate $page.Lastmod) }}
{{ $normal := eq ($page.Parent.Param "paige.keyword_style" | default "text") "text" }}
{{ $normal := eq ($page.Parent.Param "paige.site.keyword_style" | default "text") "text" }}
{{ $series := $page.GetTerms "series" | and ($page.Parent.Param "paige.subpages.disable_series" | not) }}
{{ $summary := $page.Summary | markdownify | plainify | htmlUnescape | and ($page.Parent.Param "paige.subpages.disable_summary" | not) }}
{{ $tags := $page.GetTerms "tags" }}

@ -40,8 +40,8 @@
{{ end }}
{{ $collections := slice }}
{{ $pages := $page.RegularPages | and ($page.Param "paige.subpages.disable_pages" | not) }}
{{ $sections := $page.Sections | and ($page.Param "paige.subpages.disable_sections" | not) }}
{{ $pages := $page.RegularPages | and ($page.Param "paige.pages.disable_pages" | not) }}
{{ $sections := $page.Sections | and ($page.Param "paige.pages.disable_sections" | not) }}
{{ if $page.IsHome }}
{{ range $name, $taxonomy := site.Taxonomies }}
@ -51,7 +51,7 @@
{{ end }}
{{ end }}
{{ $collections = $collections | and ($page.Param "paige.subpages.disable_collections" | not) }}
{{ $collections = $collections | and ($page.Param "paige.pages.disable_collections" | not) }}
{{ if and (not $pages) (in (slice "taxonomy" "term") $page.Kind) }}
{{ $pages = $page.Pages }}

@ -20,14 +20,14 @@
<meta content="{{ delimit (sort (union (union $page.Keywords $page.Params.tags) $page.Params.categories)) `, ` }}" name="keywords">
{{ end }}
<meta content="{{ $page.Param `paige.color` | default `#0d6efd` }}" name="msapplication-TileColor">
<meta content="{{ $page.Param `paige.site.color` | default `#0d6efd` }}" name="msapplication-TileColor">
{{ if fileExists "assets/browserconfig.xml" }}
<meta content="{{ (resources.Get `browserconfig.xml` | resources.ExecuteAsTemplate `browserconfig.xml` .).RelPermalink }}" name="msapplication-config">
{{ end }}
<meta content="https://github.com/willfaught/paige" name="theme">
<meta content="{{ $page.Param `paige.color` | default `#0d6efd` }}" name="theme-color">
<meta content="{{ $page.Param `paige.site.color` | default `#0d6efd` }}" name="theme-color">
<meta content="width=device-width, initial-scale=1" name="viewport">
{{ template "_internal/opengraph.html" $page }}

@ -6,11 +6,11 @@
{{ $date := and $page.IsPage $page.PublishDate | and ($page.Param "paige.pages.disable_date" | not) }}
{{ $description := $page.Description | markdownify | and ($page.Param "paige.pages.disable_description" | not) }}
{{ $first := templates.Exists "partials/paige/page-header-first.html" }}
{{ $format := $page.Param "paige.date_format" | default ":date_long" }}
{{ $format := $page.Param "paige.site.date_format" | default ":date_long" }}
{{ $last := templates.Exists "partials/paige/page-header-last.html" }}
{{ $link := $page.Params.link }}
{{ $microdata := $page.Params.paige.pages.microdata }}
{{ $normal := eq ($page.Param "paige.keyword_style" | default "text") "text" }}
{{ $normal := eq ($page.Param "paige.site.keyword_style" | default "text") "text" }}
{{ $series := $page.GetTerms "series" | and ($page.Param "paige.pages.disable_series" | not) }}
{{ $tags := $page.GetTerms "tags" }}
{{ $time := $page.ReadingTime | and ($page.Param "paige.pages.disable_reading_time" | not) }}

@ -17,7 +17,7 @@
{{ $authors := partial "paige/func-authors.html" $page }}
{{ $images := $page.Params.images | default slice }}
{{ $keywords := sort (union (union $page.Keywords $page.Params.tags) $page.Params.categories) }}
{{ $license := $page.Param "paige.license" | markdownify | plainify }}
{{ $license := $page.Param "paige.site.license" | markdownify | plainify }}
{{ $schema := newScratch }}
{{ $videos := $page.Params.videos | default slice }}

@ -1,10 +1,10 @@
{{ $page := . }}
{{ $copyright := site.Copyright | markdownify | and ($page.Param "paige.site.disable_copyright" | not) }}
{{ $credit := $page.Param "paige.credit" }}
{{ $credit := $page.Param "paige.site.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.disable_license" | not) }}
{{ $license := $page.Param "paige.site.license" | markdownify | and ($page.Param "paige.site.disable_license" | not) }}
{{ $microdata := $page.Params.paige.pages.microdata }}
{{ if $credit }}

@ -2,7 +2,7 @@
{{ $basePath := path.Clean (urls.Parse (relLangURL "")).Path }}
{{ $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) }}
{{ $description := $page.Param "paige.site.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 }}
@ -18,7 +18,7 @@
{{ $pagePath := strings.TrimPrefix $basePath $page.RelPermalink }}
{{ with $page.Param "paige.menu_style" }}
{{ with $page.Param "paige.site.menu_style" }}
{{ if eq . "pills" }}
{{ $pills = true }}
{{ else if eq . "tabs" }}

@ -87,7 +87,7 @@ table {
opacity: 1;
}
{{ $colorscheme := $page.Param "paige.color_scheme" }}
{{ $colorscheme := $page.Param "paige.site.color_scheme" }}
{{ if eq $colorscheme "dark" }}
{{ partial "paige/dark.css" $page | safeCSS }}

Loading…
Cancel
Save