mirror of https://github.com/onweru/compose.git

weru
02.29.2021 185aafcedecde5b6f0e8cb394018ebbe2ef6f774
refactor: make homepage sidebar optional

Signed-off-by: weru <fromweru@gmail.com>
2 files modified
4 ■■■ changed files
exampleSite/config.toml 2 ●●●●● patch | view | raw | blame | history
layouts/_default/baseof.html 2 ●●● patch | view | raw | blame | history
exampleSite/config.toml
@@ -48,6 +48,8 @@
[params]
  uniqueHomePage = true # change to false to add sidebar to homepage
  repo = "https://github.com/onweru/compose"
  time_format_blog = "Monday, January 02, 2006"
layouts/_default/baseof.html
@@ -8,7 +8,7 @@
    {{- partial "nav" . }}
  </header>
  <div class="main wrap pt-4">
    {{- if eq .Section "docs" }}
    {{- if or (eq .Section "docs") (and (ne site.Params.uniqueHomepage true) .IsHome) }}
    {{- partial "document" . }}
    {{- else }}
    {{- block "main" . }}{{ end }}