Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/darshanbaral/aafu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarshan Baral <darshanbaral@gmail.com>2020-02-23 23:07:30 +0300
committerDarshan Baral <darshanbaral@gmail.com>2020-02-23 23:07:30 +0300
commit5a6418d18307d7d8ea5c5c591c387c8553fea9bf (patch)
tree51250611e39577b9096acae7a63561ebfe4115dc
parent110e53e0f668de62592ec30e7f8e41cfd87ac8dc (diff)
Made single page layout optional
-rw-r--r--exampleSite/config.toml1
-rw-r--r--layouts/_default/baseof.html4
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>