feat: add toggle option for footer display
- Add isShowFooter option in config.toml (default: true) - Implement conditional rendering in footer.html based on isShowFooter value
This commit is contained in:
parent
2cc41d38a6
commit
169f20256a
@ -34,3 +34,4 @@
|
|||||||
back_home_text = ".."
|
back_home_text = ".."
|
||||||
date_format = "2006-01-02"
|
date_format = "2006-01-02"
|
||||||
isListGroupByDate = false
|
isListGroupByDate = false
|
||||||
|
isShowFooter = true
|
||||||
|
@ -1,2 +1,4 @@
|
|||||||
{{ $footerContent := readFile "layouts/footer.md" }}
|
{{ if site.Params.theme_config.isShowFooter }}
|
||||||
{{ $footerContent | markdownify }}
|
{{ $footerContent := readFile "layouts/footer.md" }}
|
||||||
|
{{ $footerContent | markdownify }}
|
||||||
|
{{ end }}
|
Loading…
x
Reference in New Issue
Block a user