archetypes
content
static
themes
hugo-theme-ipng
archetypes
assets
data
layouts
_default
partials
shortcodes
asciinema.html
contact-box.html
container.html
gallery-category.html
gallery-modal.html
gallery-photo.html
gallery-script.html
image.html
rawhtml.html
social.html
video.html
taxonomy
404.html
home.html
static
LICENSE.md
README.md
theme.toml
.drone.yml
.gitattributes
.gitignore
addpic.sh
hugo.yaml
mkgallery.sh
29 lines
1.2 KiB
HTML
29 lines
1.2 KiB
HTML
{{ $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 }}
|