From 996a48ad5b59819c5136e71df8bd70b66f34b362 Mon Sep 17 00:00:00 2001 From: Will Faught Date: Sun, 29 Jan 2023 11:41:50 -0800 Subject: [PATCH] Rename hide_theme_link to hide_credit_link --- README.md | 2 +- exampleSite/config.yaml | 2 +- layouts/partials/paige/footer.html | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fe0b3911..e2283b36 100644 --- a/README.md +++ b/README.md @@ -246,7 +246,7 @@ paige: utterances: # utteranc.es github_repo: "example/foo" hide_credit_data: true # Don't credit this project in a data attribute - hide_theme_link: true # Don't put a link to this project in the footer + hide_credit_link: true # Don't put a link to this project in the footer math: autorender: script_integrity: "sha384-+VBxd3r6XgURycqtZ117nYw44OOcIax56Z4dCRWbxyPt0Koah1uHoK0o4+/RRE05" # File integrity hash diff --git a/exampleSite/config.yaml b/exampleSite/config.yaml index e73885aa..c6207006 100644 --- a/exampleSite/config.yaml +++ b/exampleSite/config.yaml @@ -50,7 +50,7 @@ outputs: paginate: 50 params: paige: - hide_theme_link: true + hide_credit_link: true social: discord: icon: discord diff --git a/layouts/partials/paige/footer.html b/layouts/partials/paige/footer.html index 121aa77c..10112c71 100644 --- a/layouts/partials/paige/footer.html +++ b/layouts/partials/paige/footer.html @@ -1,20 +1,20 @@ {{ $page := . }} {{ $copyright := site.Copyright }} +{{ $credit := not site.Params.paige.hide_credit_link }} {{ $first := templates.Exists "partials/paige/footer-first.html" }} {{ $last := templates.Exists "partials/paige/footer-last.html" }} -{{ $showlink := not site.Params.paige.hide_theme_link }} -{{ if or $copyright $first $last $showlink }} +{{ if or $copyright $credit $first $last }}