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.recent_posts -}}
{{- $configData := ( or .Site.Data.config.widgets.recent_posts $defaultConfig ) -}}
{{- $lang := .Site.Language.Lang -}}
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}
{{- $length := ( $config.length | default 5 ) -}}
<section class='widget widget-recent_posts sep-after'>
<header>
<h4 class='title widget-title'>
{{- $config.title | default ( i18n "recentPosts" ) -}}
</h4>
</header>
<ul class='list'>
{{ range ( first $length ( where .Site.RegularPages "Type" "not in" $config.excludeTypes ) ) }}
{{ .Render "li" }}
{{ end }}
</ul>
</section>