diff --git a/layouts/partials/paige/comments.html b/layouts/partials/paige/comments.html index d14dc57f..b120d3a5 100644 --- a/layouts/partials/paige/comments.html +++ b/layouts/partials/paige/comments.html @@ -1,120 +1,120 @@ {{ template "_internal/disqus.html" . }} {{ if .Site.Params.paige.comments.cactus }} -
- - -
- - -
+
+ + +
+ + +
{{ end }} {{ with .Site.Params.paige.comments.commento }} -
-
- - -
+
+
+ + +
{{ end }} {{ if .Site.Params.paige.comments.graphcomment }} -
-
- - -
+ (function() { + var gc = document.createElement('script'); gc.type = 'text/javascript'; gc.async = true; + gc.onload = __semio__onload; gc.defer = true; gc.src = 'https://integration.graphcomment.com/gc_graphlogin.js?' + Date.now(); + (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(gc); + })(); + + + {{ end }} {{ if .Site.Params.paige.comments.hyvor }} -
-
- - - -
+
+
+ + + +
{{ end }} {{ if .Site.Params.paige.comments.intensedebate }} -
- - - - -
+
+ + + + +
{{ end }} {{ with .Site.Params.paige.comments.isso }} -
- -
- +
+ +
+ +
-
{{ end }} {{ with .Site.Params.paige.comments.muut }} -
- Comments - - -
+
+ Comments + + +
{{ end }} {{ if .Site.Params.paige.comments.remark42 }} -
-
- - - -
+
+
+ + + +
{{ end }} {{ if .Site.Params.paige.comments.replybox }} -
-
- - - -
+
+
+ + + +
{{ end }} {{ with .Site.Params.paige.comments.utterances }} -
- - -
+
+ + +
{{ end }} diff --git a/layouts/partials/paige/content.html b/layouts/partials/paige/content.html index 90497922..a9d0f462 100644 --- a/layouts/partials/paige/content.html +++ b/layouts/partials/paige/content.html @@ -1,9 +1,9 @@ {{ if .Content }} -
- {{ if .Scratch.Get "paige_show_full_pages" }} - {{ .Content }} - {{ else }} - {{ .Content | replaceRE `()` `${1}#${3}` | safeHTML }} - {{ end }} -
+
+ {{ if .Scratch.Get "paige_show_full_pages" }} + {{ .Content }} + {{ else }} + {{ .Content | replaceRE `()` `${1}#${3}` | safeHTML }} + {{ end }} +
{{ end }} diff --git a/layouts/partials/paige/description.html b/layouts/partials/paige/description.html index d319e128..0099d849 100644 --- a/layouts/partials/paige/description.html +++ b/layouts/partials/paige/description.html @@ -1,3 +1,3 @@ {{ with .Description }} -

{{ . | markdownify }}

+

{{ . | markdownify }}

{{ end }} diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html index 1bc22e6b..154986f7 100644 --- a/layouts/partials/paige/footer.html +++ b/layouts/partials/paige/footer.html @@ -1,11 +1,11 @@ {{ if or .Site.Copyright (not .Site.Params.paige.hide_theme_link) }} - + {{ end }} diff --git a/layouts/partials/paige/func-title.html b/layouts/partials/paige/func-title.html index c4004991..63fd2d1e 100644 --- a/layouts/partials/paige/func-title.html +++ b/layouts/partials/paige/func-title.html @@ -2,14 +2,14 @@ {{ $pageTitle := .Title | markdownify | plainify | htmlUnescape }} {{ $siteTitle := .Site.Title | markdownify | plainify | htmlUnescape }} {{ if and .Title .Site.Title }} -{{ if .IsHome }} -{{ $title = $pageTitle }} -{{ else }} -{{ $title = printf "%s · %s" $pageTitle $siteTitle }} -{{ end }} + {{ if .IsHome }} + {{ $title = $pageTitle }} + {{ else }} + {{ $title = printf "%s · %s" $pageTitle $siteTitle }} + {{ end }} {{ else if .Title }} -{{ $title = $pageTitle }} + {{ $title = $pageTitle }} {{ else if .Site.Title }} -{{ $title = $siteTitle }} + {{ $title = $siteTitle }} {{ end }} {{ return $title }} diff --git a/layouts/partials/paige/head.html b/layouts/partials/paige/head.html index 90bdb200..ce24f4ac 100644 --- a/layouts/partials/paige/head.html +++ b/layouts/partials/paige/head.html @@ -4,6 +4,6 @@ {{ partial "paige/links.html" . }} {{ partial "paige/style.html" . }} {{ if templates.Exists "partials/paige-head-last.html" }} - {{ partial "paige/head-last.html" . }} + {{ partial "paige/head-last.html" . }} {{ end }} diff --git a/layouts/partials/paige/header.html b/layouts/partials/paige/header.html index fda0a11d..626a78be 100644 --- a/layouts/partials/paige/header.html +++ b/layouts/partials/paige/header.html @@ -1,5 +1,5 @@ {{ if .Site.Menus.main }} -
- {{ partial "paige/menu.html" . }} -
+
+ {{ partial "paige/menu.html" . }} +
{{ end }} diff --git a/layouts/partials/paige/links.html b/layouts/partials/paige/links.html index 9b8af2d7..81093a27 100644 --- a/layouts/partials/paige/links.html +++ b/layouts/partials/paige/links.html @@ -2,7 +2,7 @@ {{ if ne (relLangURL "favicon.ico") "/favicon.ico" }} - + {{ end }} @@ -19,15 +19,15 @@ "remote" .Site.Params.paige.bootstrap.style.remote ) }} {{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }} -{{ partial "paige/link.html" (dict - "href" (.Site.Params.paige.math.style.link_href | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css") - "integrity" (.Site.Params.paige.math.style.link_integrity | default "sha256-NJNVfEC6jfEt62wQMafLNT2eI6BaWONXbpkSEVAs3+8=") - "remote" true -) }} + {{ partial "paige/link.html" (dict + "href" (.Site.Params.paige.math.style.link_href | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.css") + "integrity" (.Site.Params.paige.math.style.link_integrity | default "sha256-NJNVfEC6jfEt62wQMafLNT2eI6BaWONXbpkSEVAs3+8=") + "remote" true + ) }} {{ end }} {{ if .AlternativeOutputFormats }} -{{ $title := partial "paige/func-title.html" . }} -{{ range .AlternativeOutputFormats }} - -{{ end }} + {{ $title := partial "paige/func-title.html" . }} + {{ range .AlternativeOutputFormats }} + + {{ end }} {{ end }} diff --git a/layouts/partials/paige/menu.html b/layouts/partials/paige/menu.html index 1a637d1e..9045a0b9 100644 --- a/layouts/partials/paige/menu.html +++ b/layouts/partials/paige/menu.html @@ -1,27 +1,27 @@ {{ $p := . }} {{ $basePath := path.Clean (urls.Parse .Site.BaseURL).Path }} {{ if eq $basePath "/" }} -{{ $basePath = "" }} + {{ $basePath = "" }} {{ end }} {{ $links := false }} {{ $pills := false }} {{ $tabs := false }} {{ with .Site.Params.paige.menu_style }} -{{ if eq . `links` }} -{{ $links = true }} -{{ else if eq . `tabs` }} -{{ $tabs = true }} -{{ else }} -{{ $pills = true }} -{{ end }} + {{ if eq . `links` }} + {{ $links = true }} + {{ else if eq . `tabs` }} + {{ $tabs = true }} + {{ else }} + {{ $pills = true }} + {{ end }} {{ else }} -{{ $pills = true }} + {{ $pills = true }} {{ end }} diff --git a/layouts/partials/paige/metas.html b/layouts/partials/paige/metas.html index f5dc4841..ed37ff5b 100644 --- a/layouts/partials/paige/metas.html +++ b/layouts/partials/paige/metas.html @@ -1,16 +1,16 @@ {{ with partial "paige/func-authors.html" . }} - + {{ end }} {{ with .Description }} - + {{ end }} {{ if or .Keywords .Params.tags .Params.categories }} - + {{ end }} {{ if ne (relLangURL "browserconfig.xml") "/browserconfig.xml" }} - + {{ end }} diff --git a/layouts/partials/paige/other.html b/layouts/partials/paige/other.html index 634430d2..bd3e51b5 100644 --- a/layouts/partials/paige/other.html +++ b/layouts/partials/paige/other.html @@ -1,8 +1,8 @@ {{ $authors := partial "paige/func-authors.html" . }} {{ if or $authors .PublishDate}} -

- {{- with $authors }}{{ . }}{{ end -}} - {{- if and $authors .PublishDate }}
{{ end -}} - {{- with .PublishDate }}{{ end -}} -

+

+ {{- with $authors }}{{ . }}{{ end -}} + {{- if and $authors .PublishDate }}
{{ end -}} + {{- with .PublishDate }}{{ end -}} +

{{ end }} diff --git a/layouts/partials/paige/pages.html b/layouts/partials/paige/pages.html index a201edf8..ed915709 100644 --- a/layouts/partials/paige/pages.html +++ b/layouts/partials/paige/pages.html @@ -1,37 +1,37 @@ {{ if .Pages }} -{{ if .Params.paige.show_full_pages }} -{{ $p := .Paginate .Pages }} -
- {{ range $p.Pages }} - {{ .Scratch.Set "paige_show_full_pages" true }} - {{ partial "paige/article.html" . }} + {{ if .Params.paige.show_full_pages }} + {{ $p := .Paginate .Pages }} +
+ {{ range $p.Pages }} + {{ .Scratch.Set "paige_show_full_pages" true }} + {{ partial "paige/article.html" . }} + {{ end }} +
+ {{ if or $p.HasPrev $p.HasNext }} +
+
+ {{ partial "paige/pagination.html" . }} +
+
+ {{ end }} + {{ else }} + {{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }} +
+ {{ range $p.PageGroups }} +
{{ .Key }}
+ {{ range .Pages }} +

+ {{ .Title | markdownify }}{{ with .Description }}
{{ . | markdownify }}{{ end }} +

+ {{ end }} + {{ end }} +
+ {{ if or $p.HasPrev $p.HasNext }} +
+
+ {{ partial "paige/pagination.html" . }} +
+
+ {{ end }} {{ end }} -
-{{ if or $p.HasPrev $p.HasNext }} -
-
- {{ partial "paige/pagination.html" . }} -
-
-{{ end }} -{{ else }} -{{ $p := .Paginate (.Pages.ByDate.Reverse.GroupByDate "January 2006") }} -
- {{ range $p.PageGroups }} -
{{ .Key }}
- {{ range .Pages }} -

- {{ .Title | markdownify }}{{ with .Description }}
{{ . | markdownify }}{{ end }} -

- {{ end }} - {{ end }} -
-{{ if or $p.HasPrev $p.HasNext }} -
-
- {{ partial "paige/pagination.html" . }} -
-
-{{ end }} -{{ end }} {{ end }} diff --git a/layouts/partials/paige/scripts.html b/layouts/partials/paige/scripts.html index c9b90289..3403de88 100644 --- a/layouts/partials/paige/scripts.html +++ b/layouts/partials/paige/scripts.html @@ -53,124 +53,124 @@ paigeQuery.addEventListener("change", function (e) { "src" (.Site.Params.paige.bootstrap.script.script_src | default "https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.bundle.min.js") ) }} {{ if or .Params.paige.math (and .Params.paige.show_full_pages (where .Pages "Params.paige.math" "eq" true)) }} -{{ partial "paige/script.html" (dict - "integrity" .Site.Params.paige.math.script.script_integrity - "remote" .Site.Params.paige.math.script.remote - "src" (.Site.Params.paige.math.script.script_src | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js") -) }} -{{ partial "paige/script.html" (dict - "integrity" .Site.Params.paige.math.autorender.script_integrity - "onload" "renderMathInElement(document.body);" - "remote" .Site.Params.paige.math.autorender.remote - "src" (.Site.Params.paige.math.autorender.script_src | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js") -) }} + {{ partial "paige/script.html" (dict + "integrity" .Site.Params.paige.math.script.script_integrity + "remote" .Site.Params.paige.math.script.remote + "src" (.Site.Params.paige.math.script.script_src | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/katex.min.js") + ) }} + {{ partial "paige/script.html" (dict + "integrity" .Site.Params.paige.math.autorender.script_integrity + "onload" "renderMathInElement(document.body);" + "remote" .Site.Params.paige.math.autorender.remote + "src" (.Site.Params.paige.math.autorender.script_src | default "https://cdn.jsdelivr.net/npm/katex@0.16.3/dist/contrib/auto-render.min.js") + ) }} {{ end }} {{ if .Site.GoogleAnalytics }} -{{ template "_internal/google_analytics.html" . }} + {{ template "_internal/google_analytics.html" . }} {{ end }} {{ with .Site.Params.paige.analytics.chartbeat }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.clicky }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.fathom }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.finteza }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.hotjar }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.matomo }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.mixpanel }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.plausible }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.woopra }} - - + + {{ end }} {{ with .Site.Params.paige.analytics.yandex }} - - + + {{ end }} diff --git a/layouts/partials/paige/social.html b/layouts/partials/paige/social.html index b041c9fa..414d4027 100644 --- a/layouts/partials/paige/social.html +++ b/layouts/partials/paige/social.html @@ -1,15 +1,15 @@ {{ with .Site.Params.paige.social }} -
- -
+
+ +
{{ end }} diff --git a/layouts/partials/paige/style.html b/layouts/partials/paige/style.html index b491d23a..a299d318 100644 --- a/layouts/partials/paige/style.html +++ b/layouts/partials/paige/style.html @@ -22,15 +22,15 @@ section[class="paige-content"] > div { } {{ with .Site.Params.paige.content_max_width }} -section[class="paige-content"], section[class="paige-toc"] { - max-width: {{ . }}; -} + section[class="paige-content"], section[class="paige-toc"] { + max-width: {{ . }}; + } {{ end }} {{ with .Site.Params.paige.metadata_max_width }} -section[class="paige-metadata"] { - max-width: {{ . }}; -} + section[class="paige-metadata"] { + max-width: {{ . }}; + } {{ end }} .paige-figure > div > div[class="highlight"] > pre, .paige-figure > div > :last-child { @@ -49,18 +49,18 @@ section[class="paige-metadata"] { } {{ with .Site.Params.paige.color_scheme }} -{{ if eq . "dark" }} -{{ partial "paige/dark.css" . | safeCSS }} -{{ else if eq . "light" }} -{{ partial "paige/light.css" . | safeCSS }} -{{ end }} + {{ if eq . "dark" }} + {{ partial "paige/dark.css" . | safeCSS }} + {{ else if eq . "light" }} + {{ partial "paige/light.css" . | safeCSS }} + {{ end }} {{ else }} -@media (prefers-color-scheme: dark) { - {{ partial "paige/dark.css" . | safeCSS }} -} + @media (prefers-color-scheme: dark) { + {{ partial "paige/dark.css" . | safeCSS }} + } -@media (prefers-color-scheme: light) { - {{ partial "paige/light.css" . | safeCSS }} -} + @media (prefers-color-scheme: light) { + {{ partial "paige/light.css" . | safeCSS }} + } {{ end }} diff --git a/layouts/partials/paige/title.html b/layouts/partials/paige/title.html index 07447c01..04d8554b 100644 --- a/layouts/partials/paige/title.html +++ b/layouts/partials/paige/title.html @@ -1,8 +1,8 @@ {{ if .Title }} -{{ $class := "display-5" }} -{{ if .IsHome }} -{{ $class = "display-1" }} -{{ end }} -{{ $title := .Title | markdownify }} -

{{ if .Params.link }}{{ $title }}{{ else }}{{ $title }}{{ end }}{{ if .Scratch.Get "paige_show_full_pages" }}#{{ end }}

+ {{ $class := "display-5" }} + {{ if .IsHome }} + {{ $class = "display-1" }} + {{ end }} + {{ $title := .Title | markdownify }} +

{{ if .Params.link }}{{ $title }}{{ else }}{{ $title }}{{ end }}{{ if .Scratch.Get "paige_show_full_pages" }}#{{ end }}

{{ end }} diff --git a/layouts/partials/paige/toc.html b/layouts/partials/paige/toc.html index 1e55ac32..882ac1e6 100644 --- a/layouts/partials/paige/toc.html +++ b/layouts/partials/paige/toc.html @@ -1,7 +1,7 @@ {{ if and .Content .Params.paige.toc (not (eq (.Scratch.Get "paige_show_full_pages") true)) (ne .TableOfContents ``) }} -
-
- {{ .TableOfContents }} -
-
+
+
+ {{ .TableOfContents }} +
+
{{ end }}