-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathfooter.html
More file actions
43 lines (42 loc) · 1.39 KB
/
footer.html
File metadata and controls
43 lines (42 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
{{- $title := .Site.Title }}
{{- $author := .Site.Params.author }}
{{- $footer := .Site.Params.footer }}
{{- $logo := index $footer "logo" }}
{{- $quickLinks := index $footer "quicklinks" }}
{{- $socialMedia := index $footer "socialmedia" }}
{{- $navbarLogo := .Site.Params.navbarlogo }}
<footer id="footer">
<div class="container">
<div id="footer-columns">
<div id="footer-logo-column">
<img id="footer-logo" src="{{ printf "/images/%s" $logo | relURL }}" alt="{{ $title }} logo. {{ $navbarLogo.altText }}">
</div>
{{- range $quickLinks }}
<div class="footer-column">
{{- range .links }}
<div class="footer-item">
<a href="{{ .link }}">
{{ .text }}
</a>
</div>
{{- end }}
</div>
{{- end }}
<div class="footer-actions">
{{ partial "footer_actions.html" . }}
<div class="community-icons">
{{- range $socialMedia }}
<a href="{{ .link }}" aria-label="{{ .link }}">
{{if .icon -}}
{{- partial "svg-icon" .icon -}}
{{- else -}}
<span class="icon">ⓘ</span>
{{- end }}
</a>
{{- end }}
</div>
<div class="copyright">© {{ now.Year}} {{ $author }}. All rights reserved.</div>
</div>
</div>
</div>
</footer>