hackertours/themes/hackertours/layouts/_partials/footer.html
Stefan Bethke 46bf13ad1d Add the 40C3 design as theme layer hackertours-40c3 (PR #67)
The design from PR #67, after the 40C3 style guide, as a theme listed
before hackertours in hugo.yaml, so it can be switched off again with
one line after the event:

- _custom.css, _events.css, the fonts, the 40C3 logo and the web
  manifest are taken over unchanged from the PR.
- The PR's four changes to _schedule.css are an override in
  _schedule-40c3.css, so the generic schedule CSS stays shared.
- The additions to head/extra.html and footer.html go through two new
  hooks in themes/hackertours, event-design/head.html and
  event-design/footer.html, which are empty in the generic design.
- The content changes (40C3 heading on the home page, FAQ titles,
  Electrum headings) are taken over as they are.

Not taken over: the stray hackertours_banner.webp.md and the removal of
the tour-map script from home-baseof.html.
2026-11-14 00:29:28 +01:00

14 lines
1.1 KiB
HTML

{{- /* 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 -}}
{{ partial "event-design/footer.html" . }}
<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 }}