mirror of
https://github.com/davegallant/davegallant.github.io.git
synced 2025-08-08 01:22:29 +00:00
Switch themes to minimo
This commit is contained in:
20
themes/minimo/layouts/partials/widgets/taxonomy_cloud.html
Normal file
20
themes/minimo/layouts/partials/widgets/taxonomy_cloud.html
Normal 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>
|
Reference in New Issue
Block a user