From b7def36e8cf63aba60d28d246f42ff65be9f694e Mon Sep 17 00:00:00 2001 From: "Lei, HUANG" Date: Mon, 30 Sep 2024 10:35:18 -0700 Subject: [PATCH] Update footer configuration and template - Renamed `footerThemeName` to `footerHideThemeName` in `hugo.toml.example` - Updated conditional logic in `footer.html` to reflect the new parameter name --- hugo.toml.example | 2 +- layouts/partials/footer.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hugo.toml.example b/hugo.toml.example index 31a6908..fe018e5 100644 --- a/hugo.toml.example +++ b/hugo.toml.example @@ -91,7 +91,7 @@ expiryDate = ["expiryDate"] #homeSubtitle = "CHANGE ME HOME SUBTITLE" footerCopyright = "CHANGE ME FOOTER COPYRIGHT" # Whether to show a tribute to hugo and hermit-v2 theme - footerThemeName = true + footerHideThemeName = false # bgImg = "" # gitUrl = "https://github.com/1bl4z3r/hermit-V2/tree/staging" diff --git a/layouts/partials/footer.html b/layouts/partials/footer.html index 4079a58..9f9cb9d 100644 --- a/layouts/partials/footer.html +++ b/layouts/partials/footer.html @@ -2,7 +2,7 @@

© {{ now.Format "2006" }} {{ .Site.Params.author.name }} · {{ .Site.Params.footerCopyright | safeHTML }} - {{- if .Site.Params.footerThemeName -}} + {{- if not .Site.Params.footerHideThemeName -}} · Made with Hugo · Theme Hermit-V2 {{- end -}}