Merge remote-tracking branch 'origin/main' into 40c3
# Conflicts: # i18n/de.yaml # i18n/en.yaml
This commit is contained in:
commit
ab48ebcf58
1 changed files with 393 additions and 2 deletions
13
layouts/_partials/footer.html
Normal file
13
layouts/_partials/footer.html
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{{- /* Overrides the zen theme's footer.html: the theme's footer, plus the credits for event logos
|
||||
whose licence asks for one (credit in data/events.yaml), on pages that show the event cards. */ -}}
|
||||
{{ if $.Param "feedlinks" }}{{ partial "feedlinks.html" . }}{{ end -}}
|
||||
<p>{{ with site.Copyright }}{{ . | site.Home.RenderString }}{{ else }}<span>© {{ site.Title }}</span>{{ end }}</p>
|
||||
{{- if .HasShortcode "events" }}
|
||||
{{- $credits := slice }}
|
||||
{{- with hugo.Data.events }}{{ range .events }}{{ if .credit }}{{ $credits = $credits | append (dict "name" (.name | default (upper .event)) "credit" .credit) }}{{ end }}{{ end }}{{ end }}
|
||||
{{- with $credits }}
|
||||
<p>{{ range $index, $entry := . }}{{ if $index }} · {{ end }}{{ i18n "events_logo" (dict "Name" $entry.name) }}: {{ $entry.credit | site.Home.RenderString }}{{ end }}</p>
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
{{ with $.Param "footer" }}<p>{{ . | site.Home.RenderString }}</p>{{ end }}
|
||||
{{ if $.Param "poweredby" }}<p>Powered by <a href="https://gohugo.io/">Hugo</a> and the <a href="https://github.com/frjo/hugo-theme-zen">Zen theme</a>.</p>{{ end }}
|
||||
Loading…
Reference in a new issue