mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-08 22:49:44 +00:00
feat(config): add option to hide header and footer for a post (#58)
This commit is contained in:
parent
7b9848785b
commit
094cfa5dd9
2 changed files with 7 additions and 0 deletions
|
@ -23,6 +23,9 @@ mathjax: false
|
|||
mathjaxEnableSingleDollar: false
|
||||
mathjaxEnableAutoNumber: false
|
||||
|
||||
# You unlisted posts you might want not want the header or footer to show
|
||||
hideHeaderAndFooter: false
|
||||
|
||||
flowchartDiagrams:
|
||||
enable: false
|
||||
options: ""
|
||||
|
|
|
@ -16,9 +16,11 @@
|
|||
<body>
|
||||
{{ partial "slideout.html" . }}
|
||||
<div class="container" id="mobile-panel">
|
||||
{{ if not .Params.hideHeaderAndFooter -}}
|
||||
<header id="header" class="header">
|
||||
{{ partial "header.html" . }}
|
||||
</header>
|
||||
{{- end }}
|
||||
|
||||
<main id="main" class="main">
|
||||
<div class="content-wrapper">
|
||||
|
@ -29,9 +31,11 @@
|
|||
</div>
|
||||
</main>
|
||||
|
||||
{{ if not .Params.hideHeaderAndFooter -}}
|
||||
<footer id="footer" class="footer">
|
||||
{{ partial "footer.html" . }}
|
||||
</footer>
|
||||
{{- end }}
|
||||
|
||||
<div class="back-to-top" id="back-to-top">
|
||||
<i class="iconfont icon-up"></i>
|
||||
|
|
Loading…
Reference in a new issue