diff options
author | Joshua Wolfe <joshuafwolfe@gmail.com> | 2018-05-04 00:24:02 -0400 |
---|---|---|
committer | olOwOlo <26087907+olOwOlo@users.noreply.github.com> | 2018-05-04 12:24:02 +0800 |
commit | 094cfa5dd94842b00e89aca7220f7341e89d8edf (patch) | |
tree | d400e11734b5f2fef88038c5c1615bc9f8a34aa0 /layouts | |
parent | 7b9848785bfd81e74d87e405fdbbea2b94e3c1ed (diff) |
feat(config): add option to hide header and footer for a post (#58)
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/_default/baseof.html | 4 |
1 files changed, 4 insertions, 0 deletions
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> |