Skip to content

Commit

Permalink
feat: add the hb.blog.sidebar.taxonomies.separate parameter, when tru…
Browse files Browse the repository at this point in the history
…e separate taxonomies into mutliple sections (#555)
  • Loading branch information
razonyang committed Dec 16, 2023
1 parent f5be4a7 commit 81f9111
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions modules/sidebar/taxonomies/hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ path = "github.com/hbstack/blog"
[params.hb.blog.sidebar.taxonomies]
count = true
limit = 10
separate = false
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
{{- $opts := site.Params.hb.blog.sidebar.taxonomies }}
<div class="hb-blog-sidebar-taxonomies hb-module">
{{ partial "hb/modules/blog/taxonomies/toggle" $opts }}
</div>
{{- if default false site.Params.hb.blog.sidebar.taxonomies.separate }}
{{ partial "hb/modules/blog/taxonomies/default" $opts }}
{{- else }}
<div class="hb-blog-sidebar-taxonomies hb-module">
{{ partial "hb/modules/blog/taxonomies/toggle" $opts }}
</div>
{{- end }}

0 comments on commit 81f9111

Please sign in to comment.