Skip to content

Commit

Permalink
fix: show sidebar only on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
lxndrblz committed Mar 13, 2022
1 parent 799d134 commit 3db4bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions layouts/_default/baseof.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit 3db4bb0

Please sign in to comment.