forked from Bunteshaus/bunteshaus.de
55 lines
1.4 KiB
HTML
55 lines
1.4 KiB
HTML
{{ define "title" }}
|
|
{{ end }}
|
|
|
|
{{ define "main" }}
|
|
{{ if eq .Description "nottranslated" }}
|
|
{{ partial "orga/nottranslated.html" . }}
|
|
{{ else if eq .Description "generator" }}
|
|
{{ partial "orga/generator.html" . }}
|
|
{{ else }}
|
|
{{ partial "single/article" . }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
{{ define "ab" }}
|
|
{{ if ne .Section "orga" }}
|
|
<div id="article_footer">
|
|
<div style="flex-grow: 1; flex-direction: column;">
|
|
<b>Verfasst am</b><br>
|
|
{{ .Date | time.Format ":date_full" }}
|
|
</div>
|
|
{{ if ne .Date .Lastmod }}
|
|
<div style="flex-grow: 1; flex-direction: column;">
|
|
<b>zuletzt geändert</b><br>
|
|
{{ .Lastmod | time.Format ":date_full" }}
|
|
</div>
|
|
{{ end }}
|
|
</div>
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
|
|
{{ define "sidebar" }}
|
|
{{- if .Params.tags -}}
|
|
<h3>{{ T "tags" }}</h3>
|
|
<div class="tags-list" style="display: flex; flex-direction: column;">
|
|
{{- with .Params.tags -}}
|
|
{{- if ge (len .) 1 -}}
|
|
{{- range . -}}
|
|
<a href="{{ $.Site.BaseURL }}/tags/{{ . | urlize }}/">#{{ . }}</a>
|
|
{{ end -}}
|
|
{{- end -}}
|
|
{{- end -}}
|
|
</div>
|
|
{{ end }}
|
|
{{ $s := .Site.Params }}
|
|
{{ if .Translations }}
|
|
<h3>{{ "Languages" }}</h3>
|
|
{{ range .Translations }}
|
|
{{ if ne .Lang $.Lang }}
|
|
<li style="list-style: none;"><a href="{{- .Permalink -}}">{{- i18n .Lang -}}</a></li>
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|