internal/theme embeds a Hugo theme from federated-website's look and the 13 section types both sites share, with the header, footer, colors, font and logo set per site in hugo.toml, and a README of each type's fields. The catalogue reader reads themes' sections and READMEs after the site's own; lead forms know a theme site needs only the Lead Capture address. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
46 lines
2.2 KiB
HTML
46 lines
2.2 KiB
HTML
{{/*
|
|
The footer: the brand, [params.footer] tagline and place, the social
|
|
links (menu footer_social), the link groups in [params.footer] groups
|
|
(each a title and a menu's name), the legal links (menu footer_legal),
|
|
and the copyright line.
|
|
*/}}
|
|
{{ $b := site.Params.brand | default dict }}
|
|
{{ $f := site.Params.footer | default dict }}
|
|
<footer class="foot">
|
|
<div class="wrap">
|
|
<div class="foot-top-row">
|
|
<div class="foot-brand">
|
|
<a href="{{ "/" | relURL }}" class="foot-mark" aria-label="{{ site.Title }}, home">
|
|
{{ with $b.logo }}<img src="{{ . | relURL }}" alt="{{ site.Title }}" class="brand-logo">{{ else }}<span class="brand-name">{{ site.Title }}</span>{{ end }}
|
|
</a>
|
|
{{ with $f.tagline | default site.Params.tagline }}<p class="foot-line">{{ . }}</p>{{ end }}
|
|
{{ with $f.place }}<span class="foot-place">{{ . }}</span>{{ end }}
|
|
{{ with site.Menus.footer_social }}
|
|
<ul class="foot-social">
|
|
{{ range . }}<li><a href="{{ .URL }}" target="_blank" rel="noopener">{{ .Name }}<span class="arrow" aria-hidden="true">↗</span></a></li>{{ end }}
|
|
</ul>
|
|
{{ end }}
|
|
</div>
|
|
|
|
<div class="foot-grid">
|
|
{{ range $f.groups }}
|
|
<nav class="foot-group" aria-label="{{ .title }}">
|
|
<span class="foot-head">{{ .title }}</span>
|
|
<ul class="foot-links">
|
|
{{ range index site.Menus .menu }}
|
|
<li><a href="{{ if or (hasPrefix .URL "mailto:") (hasPrefix .URL "http") }}{{ .URL }}{{ else }}{{ .URL | relURL }}{{ end }}"{{ if .Params.external }} target="_blank" rel="noopener"{{ end }}>{{ .Name }}{{ if .Params.external }}<span class="arrow" aria-hidden="true">↗</span>{{ end }}</a></li>
|
|
{{ end }}
|
|
</ul>
|
|
</nav>
|
|
{{ end }}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="foot-legal">
|
|
<span class="foot-copy">{{ with $f.copyright }}{{ . }}{{ else }}© {{ now.Format "2006" }} {{ site.Title }}{{ end }}</span>
|
|
{{ range site.Menus.footer_legal }}<a class="foot-policy" href="{{ .URL | relURL }}">{{ .Name }}</a>{{ end }}
|
|
<a class="foot-top" href="#top">Back to top<span class="foot-up" aria-hidden="true">↑</span></a>
|
|
</div>
|
|
</div>
|
|
</footer>
|