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 @@
{{- define "hreflang_x" -}}
<link rel='alternate' hreflang='{{ .Lang }}' href='{{ .Permalink }}'>
{{- end -}}
{{- define "hreflang_x_default" -}}
{{- if eq .Lang ( index .Site.Languages 0 ).Lang -}}
<link rel='alternate' hreflang='x-default' href='{{ .Permalink }}'>
{{- end -}}
{{- end -}}
{{- if .IsTranslated -}}
{{- template "hreflang_x" . -}}
{{- template "hreflang_x_default" . -}}
{{- range .Translations -}}
{{- template "hreflang_x" . -}}
{{- template "hreflang_x_default" . -}}
{{- end -}}
{{- end -}}