diff options
author | Darshan Baral <darshanbaral@gmail.com> | 2020-02-23 23:07:30 +0300 |
---|---|---|
committer | Darshan Baral <darshanbaral@gmail.com> | 2020-02-23 23:07:30 +0300 |
commit | 5a6418d18307d7d8ea5c5c591c387c8553fea9bf (patch) | |
tree | 51250611e39577b9096acae7a63561ebfe4115dc | |
parent | 110e53e0f668de62592ec30e7f8e41cfd87ac8dc (diff) |
Made single page layout optional
-rw-r--r-- | exampleSite/config.toml | 1 | ||||
-rw-r--r-- | layouts/_default/baseof.html | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/exampleSite/config.toml b/exampleSite/config.toml index be366df..e80cfd7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -13,6 +13,7 @@ theme = "aafu" mainTheme = "light"
# setting false below will hide 'aafu by darshan' displayed under the profile pic
showAttribute = true
+ singlePage = false
[params.favicons]
use = true
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 0365dcb..ccdde7e 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -3,11 +3,13 @@ {{- partial "head.html" . -}} <body class="container"> <main style="min-height: calc(100vh - 60px);"> + {{ if not .Site.Params.theme.singlepage }} {{ partial "header" . }} + {{ end }} {{- block "main" . }} {{- end }} </main> - {{ if not .IsHome }} + {{ if and (not .IsHome) (not .Site.Params.theme.singlepage) }} {{ partial "footer" . }} {{ end }} </body> |