2024-10-21 21:29:11 +02:00
|
|
|
<section class="flex flex-col justify-between md:flex-row mx-2 md:mx-0 gap-2 md:gap-0 justify-between w-full max-w-4xl lg:max-w-5xl py-6 text-slate-500 dark:text-slate-300">
|
|
|
|
{{ with site.Menus.footer }}
|
|
|
|
{{ if gt (len .) 0 }}
|
|
|
|
<div class="flex flex-row justify-center md:justify-normal">
|
|
|
|
{{ range . }}
|
|
|
|
<a class="block px-3 font-light" href="{{ .URL }}" title="{{ .Name }}">{{ .Name }}</a>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
<div class="flex flex-row justify-center">
|
2024-10-21 13:47:30 +02:00
|
|
|
{{ partial "social_media.html" . }}
|
|
|
|
</div>
|
2024-10-21 21:29:11 +02:00
|
|
|
<div class="flex flex-row justify-center md:justify-end">
|
|
|
|
{{- $CopyrightSign := (printf `<i class="h-6 w-6 flex-none">%s</i>` ("©")) -}}
|
2024-10-21 13:47:30 +02:00
|
|
|
{{- $SinceYear := .Site.Params.footer.since -}}
|
|
|
|
{{- $CurrentYear := now.Format "2006" -}}
|
|
|
|
{{- $Copyright := .Site.Copyright -}}
|
|
|
|
|
|
|
|
{{ if and (.Site.Params.footer.since)
|
|
|
|
(ne .Site.Params.footer.since (int (now.Format "2006")))
|
|
|
|
}}
|
|
|
|
{{ T "footer.copyright_with_since" (dict
|
|
|
|
"CopyrightSign" $CopyrightSign
|
|
|
|
"SinceYear" $SinceYear
|
|
|
|
"CurrentYear" $CurrentYear
|
|
|
|
"Copyright" $Copyright
|
|
|
|
) | safeHTML }}
|
|
|
|
{{ else }}
|
|
|
|
{{ T "footer.copyright_wo_since" (dict
|
|
|
|
"CopyrightSign" $CopyrightSign
|
|
|
|
"CurrentYear" $CurrentYear
|
|
|
|
"Copyright" $Copyright
|
|
|
|
) | safeHTML }}
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
</section>
|