initial commit

This commit is contained in:
2020-03-16 11:54:08 +01:00
commit b515fd3856
88 changed files with 6197 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
{{- $taxo := "categories" -}}
{{- with .Param $taxo }}
<div class="meta__item-categories meta__item">
{{ partial "svg/category.svg" (dict "class" "meta__icon") }}
<span class="meta__text">
{{- range $index, $category := . }}
{{- $url := urls.Parse ($category | urlize) -}}
{{- $path := $url.Path -}}
{{- with $.Site.GetPage (printf "/%s/%s" $taxo $path) }}
{{- if gt $index 0 }}, {{ end -}}
<a class="meta__link" href="{{ .RelPermalink }}" rel="category">{{ .Title }}</a>
{{- end }}
{{- end }}
</span>
</div>
{{- end }}

View File

@@ -0,0 +1,9 @@
{{- if not .Date.IsZero }}
<div class="meta__item-datetime meta__item">
{{ partial "svg/time.svg" (dict "class" "meta__icon") }}
<time class="meta__text" datetime="{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}">{{ .Date.Format ( .Site.Params.dateformat | default "January 02, 2006") }}</time>
{{- if ne .Date .Lastmod }}
<time class="meta__text" datetime="{{ .Lastmod.Format "2006-01-02T15:04:05Z07:00" }}"> ({{ T "meta_lastmod" }}: {{ .Lastmod.Format ( .Site.Params.dateformat | default "January 02, 2006") }})</time>
{{- end }}
</div>
{{ end -}}

View File

@@ -0,0 +1,5 @@
{{- if .IsTranslated }}
<div class="meta__item-translations meta__item">
<span class="meta__text">{{ T "meta_translations" }}: {{ range $index, $translation := .Translations }}{{ if gt $index 0 }}, {{ end }}<a class="meta__link" href="{{ .RelPermalink }}">{{ .Lang | upper }}</a>{{ end }}</span>
</div>
{{ end -}}