Switch themes to minimo

This commit is contained in:
Dave Gallant
2021-09-06 11:55:05 -04:00
parent 75f9797c91
commit 4ff7aec7c1
302 changed files with 17841 additions and 607 deletions

View File

@@ -0,0 +1,20 @@
{{- $defaultConfig := .Site.Data.config.default.widgets.taxonomy_cloud -}}
{{- $configData := ( or .Site.Data.config.widgets.taxonomy_cloud $defaultConfig ) -}}
{{- $lang := .Site.Language.Lang -}}
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}
{{- $shuffle := ( $config.shuffle | default true ) -}}
{{- $taxonomy := ( $config.taxonomy | default "tags" ) -}}
{{- $taxonomyData := ( .Site.GetPage $taxonomy ).Data -}}
{{- $taxonomySingular := $taxonomyData.Singular -}}
<section class='widget widget-taxonomy_cloud sep-after'>
<header>
<h4 class='title widget-title'>
{{- ( $config.title | default ( i18n $taxonomySingular 2 ) ) -}}
</h4>
</header>
{{ partial "extras/taxonomy_cloud" ( dict "Taxonomy" $taxonomy "Shuffle" $shuffle "Scope" . ) }}
</section>