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:
younsl 2024-11-18 01:04:24 +09:00
parent 2cc41d38a6
commit 169f20256a
2 changed files with 5 additions and 2 deletions

View File

@ -34,3 +34,4 @@
back_home_text = ".."
date_format = "2006-01-02"
isListGroupByDate = false
isShowFooter = true

View File

@ -1,2 +1,4 @@
{{ $footerContent := readFile "layouts/footer.md" }}
{{ $footerContent | markdownify }}
{{ if site.Params.theme_config.isShowFooter }}
{{ $footerContent := readFile "layouts/footer.md" }}
{{ $footerContent | markdownify }}
{{ end }}