feat(config): add option to hide header and footer for a post (#58)

This commit is contained in:
Joshua Wolfe 2018-05-04 00:24:02 -04:00 committed by olOwOlo
parent 7b9848785b
commit 094cfa5dd9
2 changed files with 7 additions and 0 deletions

View file

@ -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: ""

View file

@ -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>