We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04778e9 commit 3a2adbaCopy full SHA for 3a2adba
config/_default/params.toml
@@ -11,6 +11,9 @@ jsonLD = true
11
since = 2009
12
poweredby = true
13
14
+[sidebar]
15
+ limit = 100
16
+
17
[social_media]
18
[[social_media.items]]
19
enabled = true
layouts/partials/sidebar.html
@@ -15,6 +15,7 @@
{{ range $taxonomy, $terms := site.Taxonomies }}
{{ if $terms }}
-{{ partial "block/sidebar_section.html" (dict "Context" $terms "Taxonomy" $taxonomy "Limit" 100) }}
+{{- $limit := site.Params.sidebar.limit | default 10 -}}
+{{ partial "block/sidebar_section.html" (dict "Context" $terms "Taxonomy" $taxonomy "Limit" $limit) }}
20
{{ end }}
21
0 commit comments