mirror of https://github.com/lxndrblz/anatole.git

Alexander Bilz
13.54.2022 3db4bb0f8eb2f47076ec1858cb19cdf7148f07db
fix: show sidebar only on homepage

1 files modified
4 ■■■■ changed files
layouts/_default/baseof.html 4 ●●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -17,7 +17,7 @@
  >
    <div class="wrapper">
      <aside
        {{ if and ( or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (eq .Site.Params.hidesidebar true) }}
        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
          class="wrapper__sidebar--sidebarhidden"
        {{ else }}
@@ -28,7 +28,7 @@
        {{- partial "sidebar.html" . -}}
      </aside>
      <main
        {{ if and ( or (eq .Type "post") (eq .Type .Site.Params.postSectionName)) (eq .Site.Params.hidesidebar true) }}
        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
          class="wrapper__main--sidebarhidden"
        {{ else }}