refactor: convert Tag Cloud to TOML

This commit is contained in:
George Cushen 2020-12-12 23:51:00 +00:00
parent 3927a27258
commit 278c0cc183
2 changed files with 26 additions and 28 deletions

View file

@ -1,22 +1,24 @@
+++ ---
# Tag Cloud widget. # An instance of the Tag Cloud widget.
widget = "tag_cloud" # See https://sourcethemes.com/academic/docs/page-builder/ # Docs: https://wowchemy.com/docs/page-builder/
headless = true # This file represents a page section. widget: tag_cloud
active = true # Activate this widget? true/false
weight = 120 # Order that this section will appear.
title = "Popular Topics" # This file represents a page section.
subtitle = "" headless: true
[content] # Order that this section appears on the page.
# Choose the taxonomy from `config.toml` to display (e.g. tags, categories) weight: 120
taxonomy = "tags"
title: Popular Topics
subtitle: ''
content:
# Choose the taxonomy from `config.toml` to display (e.g. tags, categories)
taxonomy: tags
# Choose how many tags you would like to display (0 = all tags) # Choose how many tags you would like to display (0 = all tags)
count = 20 count: 20
design:
[design]
# Minimum and maximum font sizes (1.0 = 100%). # Minimum and maximum font sizes (1.0 = 100%).
font_size_min = 0.7 font_size_min: 0.7
font_size_max = 2.0 font_size_max: 2.0
+++ ---

View file

@ -1,11 +1,8 @@
--- ---
# An instance of the Tag Cloud widget. # An instance of the Tag Cloud widget.
# Documentation: https://sourcethemes.com/academic/docs/page-builder/ # Docs: https://wowchemy.com/docs/page-builder/
widget: tag_cloud widget: tag_cloud
# Activate this widget? true/false
active: true
# This file represents a page section. # This file represents a page section.
headless: true headless: true
@ -13,16 +10,15 @@ headless: true
weight: 120 weight: 120
title: Popular Topics title: Popular Topics
subtitle: subtitle: ''
content: content:
# Choose the taxonomy from `config.toml` to display (e.g. tags, categories)
taxonomy: tags
# Choose how many tags you would like to display (0 = all tags) # Choose how many tags you would like to display (0 = all tags)
count: 20 count: 20
# Choose the taxonomy from `config.toml` to display (e.g. tags, categories)
taxonomy: tags
design: design:
# Minimum and maximum font sizes (1.0 = 100%).
font_size_min: 0.7 font_size_min: 0.7
font_size_max: 2 font_size_max: 2.0
--- ---