bunteshaus.de/themes/buha/layouts/partials/snippets/footer.html

74 lines
2.7 KiB
HTML
Raw Normal View History

2022-06-16 14:08:11 +02:00
{{- if or (eq site.Params.archive true) (eq site.Params.newsletter true) (eq site.Params.links true) (eq site.Params.imprint true) (eq site.Params.search true) }}
2022-06-16 01:00:58 +02:00
<div class="infobox a">
2022-06-16 14:08:11 +02:00
{{- if eq site.Params.search true -}}
{{ $search := "Search" }}
{{ if i18n "search" }}
{{ $search = i18n "search" }}
{{ end }}
<a href="{{- "search" | absLangURL -}}">{{- $search | strings.FirstUpper -}}</a>
{{- end -}}
2022-04-03 01:12:28 +02:00
{{- if eq site.Params.archive true -}}
2022-04-08 13:22:50 +02:00
{{ $archive := "Archive" }}
{{ if i18n "archive" }}
2022-04-03 21:08:42 +02:00
{{ $archive = i18n "archive" }}
{{ end }}
2022-06-15 00:37:18 +02:00
<a href="{{- "archive" | absLangURL -}}">{{- $archive | strings.FirstUpper -}}</a>
2022-04-03 01:12:28 +02:00
{{- end -}}
2022-04-08 12:04:46 +02:00
{{- if eq site.Params.newsletter true -}}
{{ $newsletter := "Newsletter" }}
2022-04-08 13:22:50 +02:00
{{ if i18n "newsletter" }}
2022-04-08 12:04:46 +02:00
{{ $newsletter = i18n "newsletter" }}
{{ end }}
2022-06-15 00:37:18 +02:00
<a href="{{- "newsletter" | absLangURL -}}">{{- $newsletter | strings.FirstUpper -}}</a>
2022-04-08 12:04:46 +02:00
{{- end -}}
2022-04-08 13:22:50 +02:00
{{- if eq site.Params.links true -}}
{{ $links := "Links" }}
{{ if i18n "links" }}
{{ $links = i18n "links" }}
{{ end }}
2022-06-15 00:37:18 +02:00
<a href="{{- "links" | absLangURL -}}">{{- $links | strings.FirstUpper -}}</a>
2022-04-03 01:12:28 +02:00
{{- end -}}
2022-06-15 21:48:37 +02:00
{{- if eq site.Params.imprint true -}}
{{ $imprint := "Imprint" }}
{{ if i18n "imprint" }}
{{ $imprint = i18n "imprint" }}
{{ end }}
<a href="{{- "imprint" | absLangURL -}}">{{- $imprint | strings.FirstUpper -}}</a>
{{- end -}}
</div>
2022-06-16 01:21:24 +02:00
{{- end -}}
2022-06-15 21:48:37 +02:00
2022-06-17 17:45:53 +02:00
{{- if or (eq site.Params.rss true) (eq site.Params.files true) (eq site.Params.sourcecode true) }}
2022-06-16 01:00:58 +02:00
<div class="infobox b">
2022-06-17 17:45:53 +02:00
{{ if eq site.Params.files true }}<a href="{{- "files" | absLangURL -}}">{{ if i18n "files" }}{{ i18n "files" }}{{ else }}{{ "Files" }}{{ end }}</a>{{ end }}
{{ if eq site.Params.tools true }}<a href="{{- "tools" | absLangURL -}}">{{ if i18n "tools" }}{{ i18n "tools" }}{{ else }}{{ "Tools" }}{{ end }}</a>{{ end }}
2022-06-16 01:21:24 +02:00
{{ if eq site.Params.rss true }}
{{- if or (in .Site.Params.mainMenu .Section) -}}
{{- with .OutputFormats.Get "rss" -}}
{{- if .Permalink -}}
{{- printf `<a href="%s">` .Permalink | safeHTML -}}
{{- end -}}
RSS
{{- if .Permalink -}}
</a>
{{- end -}}
{{- end -}}
{{ end }}
2022-04-08 17:21:11 +02:00
{{ end }}
2022-06-16 01:21:24 +02:00
{{ if eq site.Params.sourcecode true }}<a href="https://schlomp.space/Bunteshaus/bunteshaus.de">Sourcecode</a>{{ end }}
2022-04-03 01:12:28 +02:00
</div>
2022-06-16 01:21:24 +02:00
{{ end }}
2022-06-16 01:00:58 +02:00
{{- if eq site.Params.contact true }}
<div class="infobox c">
{{ $contact := "Contact" }}
{{ if i18n "contact" }}
{{ $contact = i18n "contact" }}
{{ end }}
<a href="{{- "contact" | absLangURL -}}">{{- $contact | strings.FirstUpper -}}:</a>
<div>
{{- partial "snippets/contact" -}}
</div>
</div>
{{- end -}}