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

Alexander Bilz
27.36.2023 f7eba2040b388d14eb06a656c33ba49d47c7c7b8
feat: hide sidebar on certain posts
1 files modified
4 ■■■■ changed files
layouts/_default/baseof.html 4 ●●●● patch | view | raw | blame | history
layouts/_default/baseof.html
@@ -13,7 +13,7 @@
  <body class="body">
    <div class="wrapper">
      <aside
        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
      {{ if (and (or (eq .Site.Params.hidesidebar true) (eq .Params.hidesidebar true)) (not .IsHome)) }}
          class="wrapper__sidebar wrapper__sidebar--hidden"
        {{ else }}
          class="wrapper__sidebar"
@@ -22,7 +22,7 @@
        {{- partial "sidebar.html" . -}}
      </aside>
      <main
        {{ if and (not .IsHome) (eq .Site.Params.hidesidebar true) }}
      {{ if (and (or (eq .Site.Params.hidesidebar true) (eq .Params.hidesidebar true)) (not .IsHome)) }}
          class="wrapper__main wrapper__main--fullscreen"
        {{ else }}
          class="wrapper__main"