Add option to toggle footer theme name display
- Introduced `footerThemeName` parameter in `hugo.toml.example` to control the display of Hugo and Hermit-V2 theme tribute in the footer. - Updated `footer.html` to conditionally display the tribute based on the `footerThemeName` parameter.
This commit is contained in:
@ -90,6 +90,8 @@ expiryDate = ["expiryDate"]
|
|||||||
|
|
||||||
#homeSubtitle = "CHANGE ME HOME SUBTITLE"
|
#homeSubtitle = "CHANGE ME HOME SUBTITLE"
|
||||||
footerCopyright = "CHANGE ME FOOTER COPYRIGHT"
|
footerCopyright = "CHANGE ME FOOTER COPYRIGHT"
|
||||||
|
# Whether to show a tribute to hugo and hermit-v2 theme
|
||||||
|
footerThemeName = true
|
||||||
# bgImg = ""
|
# bgImg = ""
|
||||||
# gitUrl = "https://github.com/1bl4z3r/hermit-V2/tree/staging"
|
# gitUrl = "https://github.com/1bl4z3r/hermit-V2/tree/staging"
|
||||||
|
|
||||||
|
@ -2,8 +2,10 @@
|
|||||||
<p>
|
<p>
|
||||||
© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Params.author.name }}</a>
|
© {{ now.Format "2006" }} <a href="{{ .Site.BaseURL }}">{{ .Site.Params.author.name }}</a>
|
||||||
· {{ .Site.Params.footerCopyright | safeHTML }}
|
· {{ .Site.Params.footerCopyright | safeHTML }}
|
||||||
· Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>
|
{{- if .Site.Params.footerThemeName -}}
|
||||||
· Theme <a href="https://github.com/1bl4z3r/hermit-V2" target="_blank" rel="noopener">Hermit-V2</a>
|
· Made with <a href="https://gohugo.io/" target="_blank" rel="noopener">Hugo</a>
|
||||||
|
· Theme <a href="https://github.com/1bl4z3r/hermit-V2" target="_blank" rel="noopener">Hermit-V2</a>
|
||||||
|
{{- end -}}
|
||||||
{{- with .OutputFormats.Get "RSS" }}
|
{{- with .OutputFormats.Get "RSS" }}
|
||||||
· <a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss">{{- partial "svg.html" (dict "context" . "name" "rss") -}}</a>
|
· <a href="{{ "posts/index.xml" | absLangURL }}" target="_blank" title="rss">{{- partial "svg.html" (dict "context" . "name" "rss") -}}</a>
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
Reference in New Issue
Block a user