hugo-sr2/layouts/_partials/footer.html
2026-01-10 13:42:14 +00:00

96 lines
2.7 KiB
HTML

<div class="footer__content">
<div class="footer__column">
{{ with site.Params.logo.small }}
{{ with resources.Get . }}
<img
class="footer__logo"
src="{{ .RelPermalink }}"
width="{{ .Width }}"
alt="{{ site.Params.logo.smallAlt }}" />
{{ else }}
{{ errorf "Unable to find %s in assets directory" . }}
{{ end }}
{{ end }}
<address class="footer__address">{{ site.Params.address }}</address>
<div class="footer__duns">{{ site.Params.duns }}</div>
</div>
<div
{{ if and (site.Params.footer.col2.align) (eq site.Params.footer.col2.align "right") }}
class="footer__column-right-aligned"
{{ else }}
class="footer__column"
{{ end }}>
{{ range site.Params.footer.col2.items }}
{{ if .title }}
<h6 class="footer__menu__title">{{ .title }}</h6>
{{ else if .text }}
<a class="footer__menu__link" href="{{ .href | safeURL }}">
{{ if .icon }}
<i class="footer__menu__link__icon" data-feather="{{ .icon }}"></i>
{{ end }}
{{ .text }}</a
>
{{ else if .caption }}
<div class="footer__menu__caption">{{ .caption }}</div>
{{ else if .logo }}
{{ $alt := .alt }}
{{ $href := .href }}
{{ $size := .size }}
{{ with resources.Get .logo }}
<a {{ if $href }}href="{{ $href | safeURL }}"{{ end }}>
<img
class="footer__menu__logo"
src="{{ .RelPermalink }}"
width="{{ compare.Conditional ($size) $size .Width }}"
alt="{{ $alt }}" />
</a>
{{ else }}
{{ errorf "Unable to find %s in assets directory" . }}
{{ end }}
{{ end }}
{{ end }}
</div>
<div
{{ if and (site.Params.footer.col3.align) (eq site.Params.footer.col3.align "right") }}
class="footer__column-right-aligned"
{{ else }}
class="footer__column"
{{ end }}>
{{ range site.Params.footer.col3.items }}
{{ if .title }}
<h6 class="footer__menu__title">{{ .title }}</h6>
{{ else if .text }}
<a class="footer__menu__link" href="{{ .href | safeURL }}">
{{ if .icon }}
<i class="footer__menu__link__icon" data-feather="{{ .icon }}"></i>
{{ end }}
{{ .text }}</a
>
{{ else if .caption }}
<div class="footer__menu__caption">{{ .caption }}</div>
{{ else if .logo }}
{{ $alt := .alt }}
{{ $href := .href }}
{{ $size := .size }}
{{ with resources.Get .logo }}
<a {{ if $href }}href="{{ $href | safeURL }}"{{ end }}>
<img
class="footer__menu__logo"
src="{{ .RelPermalink }}"
width="{{ compare.Conditional ($size) $size .Width }}"
alt="{{ $alt }}" />
</a>
{{ else }}
{{ errorf "Unable to find %s in assets directory" . }}
{{ end }}
{{ end }}
{{ end }}
</div>
<div class="footer__legal">
{{- partial "legal.html" }}
</div>
</div>