Skip to content

Commit

Permalink
feat: add the sidebar page parameter
Browse files Browse the repository at this point in the history
Hide the sidebar if `false`

Closes #992
  • Loading branch information
razonyang committed Oct 8, 2024
1 parent 9d88a70 commit b85f843
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions layouts/partials/hb/modules/blog/sidebar.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<div class="hb-blog-sidebar pe-lg-1">
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-sidebar" "Page" .) }}
</div>
{{- if default true .Params.sidebar }}
<div class="hb-blog-sidebar pe-lg-1">
{{ partial "hugopress/functions/render-hooks" (dict "Name" "hb-blog-sidebar" "Page" .) }}
</div>
{{- end }}

0 comments on commit b85f843

Please sign in to comment.