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

View file

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