feat: initial import
This commit is contained in:
commit
03ab1091b1
50 changed files with 1146 additions and 0 deletions
96
layouts/_partials/footer.html
Normal file
96
layouts/_partials/footer.html
Normal file
|
|
@ -0,0 +1,96 @@
|
|||
<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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue