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,41 @@
{{- $social := .Site.Params.social -}}
{{- if $social -}}
{{- $defaultConfig := .Site.Data.config.default.widgets.social_menu -}}
{{- $configData := ( or .Site.Data.config.widgets.social_menu $defaultConfig ) -}}
{{- $lang := .Site.Language.Lang -}}
{{- $config := ( ( index $configData $lang ) | default $configData ) -}}
<section class='widget widget-social_menu sep-after'>
{{- with $config.title -}}
<header>
<h4 class='title widget-title'>
{{- . -}}
</h4>
</header>
{{- end -}}
<nav aria-label='{{ i18n "socialMenu" }}'>
<ul>
{{- range $platform := $config.platforms -}}
{{- with $username := ( index $social $platform ) -}}
<li>
<a href='{{ print ( index $.Site.Data.theme.social.base $platform ) $username }}' target='_blank' rel='noopener me'>
<span class='screen-reader-text'>
{{- if eq $platform "email" -}}
{{- i18n "contactViaEmail" -}}
{{- else -}}
{{- i18n "openAccountInNewTab" ( dict "Platform" ( $platform | title ) ) -}}
{{- end -}}
</span>
{{- partial "svg/icon" $platform -}}
</a>
</li>
{{- end -}}
{{- end -}}
</ul>
</nav>
</section>
{{- end -}}