Skip to content

Commit

Permalink
feat: Support custom sidebar limit param (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattmc3 authored Jul 14, 2024
1 parent 9feaec6 commit fbd1afb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion layouts/partials/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@

{{ range $taxonomy, $terms := site.Taxonomies }}
{{ if $terms }}
{{ partial "block/sidebar_section.html" (dict "Context" $terms "Taxonomy" $taxonomy "Limit" 10) }}
{{- $limit := site.Params.sidebar.limit | default 10 -}}
{{ partial "block/sidebar_section.html" (dict "Context" $terms "Taxonomy" $taxonomy "Limit" $limit) }}
{{ end }}
{{ end }}

0 comments on commit fbd1afb

Please sign in to comment.