Skip to content

Commit

Permalink
feat: hide sidebar on certain posts (#439)
Browse files Browse the repository at this point in the history
Hide sidebar on certain posts.
  • Loading branch information
lxndrblz committed Mar 27, 2023
1 parent 6a5fa07 commit 38de0c9
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 @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 38de0c9

Please sign in to comment.