Website Summary Files Commits Branches @commit @diff @stats
path: root / website / themes / hugo-clarity / layouts / partials / follow.html
blob: 96c7cc2cc4adc0b9bd0802cb0bb572bf7128a34d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{- $items := .Site.Data.social }}
<div class='follow'>
  {{- range $items }}
  {{- $url := .url }}
  {{- if .internal }}
  {{ $url = absURL .url }}
  {{- end }}
  <a href='{{ $url }}'>
    <svg class="icon">
      <use xlink:href="#{{ .item }}"></use>
    </svg>
  </a>
  {{- end }}
  {{- partial "mode" . }}
</div>