diff options
-rw-r--r-- | archetypes/default.md | 3 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/archetypes/default.md b/archetypes/default.md index 4e385b5..1049a50 100644 --- a/archetypes/default.md +++ b/archetypes/default.md @@ -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: "" diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index ce87827..0693148 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -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> |