Files
archetypes
content
static
themes
hugo-theme-ipng
archetypes
assets
data
layouts
_default
partials
blog-entry-summary.html
blog-taxonomy-info.html
footer.html
head.html
header.html
pagination.html
post-category-link.html
post-tag-link.html
shortcodes
taxonomy
404.html
home.html
static
LICENSE.md
README.md
theme.toml
.drone.yml
.gitattributes
.gitignore
hugo.yaml
ipng.ch/themes/hugo-theme-ipng/layouts/partials/footer.html

30 lines
1.3 KiB
HTML

<footer class='page-footer'>
{{- $socialMap := .Site.Data.notrack.social }}
{{- with $.Site.Params.social }}
<div class="social">
<ul>
{{- $socialArray := slice -}}
{{- range $website, $user := $.Site.Params.social }}
{{- $social := $website | lower | index $socialMap | default dict -}}
{{- $social := dict "user" $user | merge $social -}}
{{- $data := index $socialMap $website -}}
{{- $socialArray = $socialArray | append $social -}}
{{- end }}
{{- range sort $socialArray "weight" -}}
{{- if .prefix -}}
<li><a href="{{- .prefix -}}{{ .user }}" rel="me"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .template -}}
<li><a href="{{- printf .template .user -}}" rel="me"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- else if .url -}}
<li><a href="{{- .url -}}"><i class="{{- .icon.class -}}"></i>{{ .title }}</a></li>
{{- end -}}
{{- end -}}
</ul>
</div>
{{- end }}
{{ printf " <!-- Icons are from Awesome Font, licensed under SIL OFL 1.1 (https://scripts.sil.org/OFL) -->" | safeHTML }}
</footer>