From 548af63634ccbc4b439d4b8afd4095c438a44587 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 29 Jan 2023 10:45:03 -0800 Subject: [PATCH] Use site instead of .Site --- layouts/partials/paige/comments.html | 34 ++++++++++---------- layouts/partials/paige/footer.html | 4 +-- layouts/partials/paige/func-authors.html | 4 +-- layouts/partials/paige/header.html | 2 +- layouts/partials/paige/links.html | 14 ++++----- layouts/partials/paige/menu.html | 8 ++--- layouts/partials/paige/metas.html | 4 +-- layouts/partials/paige/scripts.html | 40 ++++++++++++------------ layouts/partials/paige/style.html | 6 ++-- 9 files changed, 58 insertions(+), 58 deletions(-) diff --git a/layouts/partials/paige/comments.html b/layouts/partials/paige/comments.html index b120d3a5..643028fc 100644 --- a/layouts/partials/paige/comments.html +++ b/layouts/partials/paige/comments.html @@ -1,5 +1,5 @@ {{ template "_internal/disqus.html" . }} -{{ if .Site.Params.paige.comments.cactus }} +{{ if site.Params.paige.comments.cactus }}
@@ -9,26 +9,26 @@ node: document.getElementById("comment-section"), defaultHomeserverUrl: "https://matrix.cactus.chat:8448", serverName: "cactus.chat", - siteName: {{ .Site.Params.paige.comments.cactus.account_id }}, + siteName: {{ site.Params.paige.comments.cactus.account_id }}, commentSectionId: {{ .RelPermalink }} })
{{ end }} -{{ with .Site.Params.paige.comments.commento }} +{{ with site.Params.paige.comments.commento }}
{{ end }} -{{ if .Site.Params.paige.comments.graphcomment }} +{{ if site.Params.paige.comments.graphcomment }}
@@ -71,7 +71,7 @@
{{ end }} -{{ with .Site.Params.paige.comments.isso }} +{{ with site.Params.paige.comments.isso }}
@@ -79,32 +79,32 @@
{{ end }} -{{ with .Site.Params.paige.comments.muut }} +{{ with site.Params.paige.comments.muut }}
Comments
{{ end }} -{{ if .Site.Params.paige.comments.remark42 }} +{{ if site.Params.paige.comments.remark42 }}
{{ end }} -{{ if .Site.Params.paige.comments.replybox }} +{{ if site.Params.paige.comments.replybox }}
@@ -112,7 +112,7 @@
{{ end }} -{{ with .Site.Params.paige.comments.utterances }} +{{ with site.Params.paige.comments.utterances }}
diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html index 1faa1458..d1c5bf02 100644 --- a/layouts/partials/paige/footer.html +++ b/layouts/partials/paige/footer.html @@ -1,7 +1,7 @@ -{{ $copyright := .Site.Copyright }} +{{ $copyright := site.Copyright }} {{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ $last := templates.Exists "partials/paige/footer-last.html" }} -{{ $showlink := not .Site.Params.paige.hide_theme_link }} +{{ $showlink := not site.Params.paige.hide_theme_link }} {{ if or $copyright $first $last $showlink }}