Skip to content

Commit 3a2adba

Browse files
committed
Increase sidebar limit
1 parent 04778e9 commit 3a2adba

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Diff for: config/_default/params.toml

+3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jsonLD = true
1111
since = 2009
1212
poweredby = true
1313

14+
[sidebar]
15+
limit = 100
16+
1417
[social_media]
1518
[[social_media.items]]
1619
enabled = true

Diff for: layouts/partials/sidebar.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

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

0 commit comments

Comments
 (0)