Add underscores to parameters

This commit is contained in:
Will Faught
2022-12-15 20:03:50 -08:00
parent bc708f24f8
commit df5ec6296e
11 changed files with 24 additions and 24 deletions

View File

@@ -21,6 +21,6 @@
{{ end }}
</body>
</html>
{{ if not .Site.Params.paigehidethemecomment }}
{{ if not .Site.Params.paige_hide_theme_comment }}
{{ printf "<!-- Paige theme from https://github.com/willfaught/paige -->" | safeHTML }}
{{ end }}

View File

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

View File

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

View File

@@ -1,6 +1,6 @@
{{ with .PublishDate }}
{{ $format := ":date_long" }}
{{ with site.Params.paigedateformat }}
{{ with site.Params.paige_date_format }}
{{ $format = . }}
{{ end }}
<p class="text-center text-muted"><time datetime="{{ .Format `2006-01-02` }}">{{ time.Format $format . }}</time></p>

View File

@@ -1,10 +1,10 @@
{{ if or .Site.Copyright (not .Site.Params.paigehidethemelink) }}
{{ if or .Site.Copyright (not .Site.Params.paige_hide_theme_link) }}
<footer>
{{ if and .Site.Copyright (not .Site.Params.paigehidethemelink) }}
{{ if and .Site.Copyright (not .Site.Params.paige_hide_theme_link) }}
<p class="text-center text-muted">{{ .Site.Copyright | markdownify }} · <a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ else if .Site.Copyright }}
<p class="text-center text-muted">{{ .Site.Copyright | markdownify }}</p>
{{ else if not .Site.Params.paigehidethemelink }}
{{ else if not .Site.Params.paige_hide_theme_link }}
<p class="text-center"><a class="link-secondary text-decoration-none" href="https://github.com/willfaught/paige">Paige Theme</a></p>
{{ end }}
</footer>

View File

@@ -1,9 +1,9 @@
{{ with .Site.Params.paigebootstrapstyles }}
{{ with .Site.Params.paige_bootstrap_styles }}
<link href="{{ relURL . }}" rel="stylesheet">
{{ else }}
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/css/bootstrap.min.css" integrity="sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi" rel="stylesheet">
{{ end }}
{{ with .Site.Params.paigebootstrapicons }}
{{ with .Site.Params.paige_bootstrap_icons }}
<link href="{{ relURL . }}" rel="stylesheet">
{{ else }}
<link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.2/font/bootstrap-icons.css" integrity="sha384-b6lVK+yci+bfDmaY1u0zE8YYJt0TZxLEAFyYSLHId4xoVvsrQu3INevFKo+Xir8e" rel="stylesheet">

View File

@@ -1,5 +1,5 @@
{{ if .Pages }}
{{ if .Params.paigeshowfullpages }}
{{ if .Params.paige_show_full_pages }}
{{ $page := . }}
{{ $p := .Paginate .Pages }}
{{ range $p.Pages }}

View File

@@ -1,4 +1,4 @@
{{ with .Site.Params.paigebootstrapscripts }}
{{ with .Site.Params.paige_bootstrap_scripts }}
<script defer src="{{ relURL . }}"></script>
{{ else }}
<script crossorigin="anonymous" defer integrity="sha384-OERcA2EqjJCMA+/3y+gxIOqMEjwtxJY7qPCqsdltbNJuaOe923+mo//f6V8Qbsw3" referrerpolicy="no-referrer" src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.2/dist/js/bootstrap.bundle.min.js"></script>

View File

@@ -6,7 +6,7 @@
{{ $title = .Site.Title }}
{{ end }}
{{ end }}
{{ if and $title (not .Params.paigeshowfullpages) }}
{{ if and $title (not .Params.paige_show_full_pages) }}
<h1 class="{{ $class }} fw-bold text-center">
{{ with .Params.link }}
<a href="{{ . }}">{{ $title | markdownify }}</a>