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,15 @@
{{- $.Scratch.Set "authorID" "" -}}
{{- if eq .Kind "term" -}}
{{- $.Scratch.Set "authorID" .Data.Term -}}
{{- else if eq .Kind "taxonomy" -}}
{{- $.Scratch.Set "authorID" .Name -}}
{{- else if eq .Kind "page" -}}
{{- $.Scratch.Set "authorID" ( index .Params.authors 0 ) -}}
{{- end -}}
{{- $lang := ( .Params.lang | default .Lang ) -}}
{{- $author := ( index $.Site.Data.authors ( $.Scratch.Get "authorID" ) ) -}}
{{- $i18nAuthor := ( index $author $lang ) -}}
{{- $name := ( or $i18nAuthor.name $author.name ) -}}
{{- $name.display -}}

View File

@@ -0,0 +1,11 @@
{{- with .Description -}}
{{- . -}}
{{- else -}}
{{- if .IsPage -}}
{{- .Summary -}}
{{- else -}}
{{- with .Site.Params.info.description -}}
{{- . -}}
{{- end -}}
{{- end -}}
{{- end -}}

View File

@@ -0,0 +1,27 @@
{{- $title := ( .Title ) -}}
{{- $siteTitle := ( .Site.Title ) -}}
{{- $sep := ( .Site.Params.seo.titleSeparator | default "•" ) -}}
{{- $title404 := ( .Site.Params.info.title404 | default $title ) -}}
{{- if .IsHome -}}
{{ $siteTitle }}
{{- else if eq .Kind "404" -}}
{{ $title404 }} {{ $sep }} {{ $siteTitle }}
{{- else if eq .Kind "term" -}}
{{- ( ( i18n .Data.Singular 1 ) | default .Data.Singular ) -}}
{{- print ": " -}}
{{- if eq .Data.Singular "author" -}}
{{- partial "data/author/displayName" . -}}
{{- else -}}
{{- $title -}}
{{- end -}}
{{- print " " $sep " " $siteTitle -}}
{{- else if ( or .IsNode ( eq .Section "page" ) ) -}}
{{ $title }} {{ $sep }} {{ $siteTitle }}
{{- else -}}
{{- if .Params.authors -}}
{{ $title }} {{ $sep }} {{ partial "data/author/displayName" . }}
{{- else -}}
{{ $title }} {{ $sep }} {{ $siteTitle }}
{{- end -}}
{{- end -}}