mirror of
https://git.adityakumar.xyz/hugo-theme-even.git
synced 2024-11-12 16:19:45 +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
|
mathjaxEnableSingleDollar: false
|
||||||
mathjaxEnableAutoNumber: false
|
mathjaxEnableAutoNumber: false
|
||||||
|
|
||||||
|
# You unlisted posts you might want not want the header or footer to show
|
||||||
|
hideHeaderAndFooter: false
|
||||||
|
|
||||||
flowchartDiagrams:
|
flowchartDiagrams:
|
||||||
enable: false
|
enable: false
|
||||||
options: ""
|
options: ""
|
||||||
|
|
|
@ -16,9 +16,11 @@
|
||||||
<body>
|
<body>
|
||||||
{{ partial "slideout.html" . }}
|
{{ partial "slideout.html" . }}
|
||||||
<div class="container" id="mobile-panel">
|
<div class="container" id="mobile-panel">
|
||||||
|
{{ if not .Params.hideHeaderAndFooter -}}
|
||||||
<header id="header" class="header">
|
<header id="header" class="header">
|
||||||
{{ partial "header.html" . }}
|
{{ partial "header.html" . }}
|
||||||
</header>
|
</header>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
<main id="main" class="main">
|
<main id="main" class="main">
|
||||||
<div class="content-wrapper">
|
<div class="content-wrapper">
|
||||||
|
@ -29,9 +31,11 @@
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
|
{{ if not .Params.hideHeaderAndFooter -}}
|
||||||
<footer id="footer" class="footer">
|
<footer id="footer" class="footer">
|
||||||
{{ partial "footer.html" . }}
|
{{ partial "footer.html" . }}
|
||||||
</footer>
|
</footer>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
<div class="back-to-top" id="back-to-top">
|
<div class="back-to-top" id="back-to-top">
|
||||||
<i class="iconfont icon-up"></i>
|
<i class="iconfont icon-up"></i>
|
||||||
|
|
Loading…
Reference in a new issue