diff --git a/_config.yml b/_config.yml index febfe038f7..806eb21cee 100644 --- a/_config.yml +++ b/_config.yml @@ -394,6 +394,7 @@ tagcloud: enable: false # All values below are same as default, change them by yourself + amount: 200 # amount of tags, set `enable` to `true` and edit this option if you have more than 200 tags min: 12 # min font size in px max: 30 # max font size in px start: '#ccc' # start color (hex, rgba, hsla or color keywords) diff --git a/layout/page.swig b/layout/page.swig index ba72f444d3..c64f73c197 100644 --- a/layout/page.swig +++ b/layout/page.swig @@ -43,9 +43,9 @@
{% if not theme.tagcloud %} - {{ tagcloud({min_font: 12, max_font: 30, amount: 300, color: true, start_color: '#ccc', end_color: '#111'}) }} + {{ tagcloud({min_font: 12, max_font: 30, amount: 200, color: true, start_color: '#ccc', end_color: '#111'}) }} {% else %} - {{ tagcloud({min_font: theme.tagcloud.min, max_font: theme.tagcloud.max, amount: 300, color: true, start_color: theme.tagcloud.start, end_color: theme.tagcloud.end}) }} + {{ tagcloud({min_font: theme.tagcloud.min, max_font: theme.tagcloud.max, amount: theme.tagcloud.amount, color: true, start_color: theme.tagcloud.start, end_color: theme.tagcloud.end}) }} {% endif %}