2021-05-17 20:04:42 +02:00
|
|
|
<ul class="social-icons">
|
|
|
|
|
|
|
|
{{ range $.Site.Params.Social }}
|
2021-12-18 13:07:34 +01:00
|
|
|
{{ if and (isset $.Site.Data.social.social_icons .id) (isset . "url") }}
|
|
|
|
<li>
|
|
|
|
<a {{ printf "href=%q" .url | safeHTMLAttr }} title="{{ humanize .id }}" rel="me">
|
|
|
|
{{ partial "font-awesome.html" (dict "iconName" .id "custom" false) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ else if and (isset $.Site.Data.social.social_icons .id) (isset . "name") }}
|
2021-05-17 20:04:42 +02:00
|
|
|
{{ $url := index $.Site.Data.social.social_icons .id }}
|
2021-06-27 23:49:19 +02:00
|
|
|
{{ $ref := printf $url .name }}
|
2021-05-17 20:04:42 +02:00
|
|
|
<li>
|
2021-06-27 23:49:19 +02:00
|
|
|
<a {{ printf "href=%q" $ref | safeHTMLAttr }} title="{{ humanize .id }}" rel="me">
|
2021-07-09 18:00:52 +02:00
|
|
|
{{ partial "font-awesome.html" (dict "iconName" .id "custom" false) }}
|
2021-05-17 20:04:42 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ else if (isset . "url") }}
|
|
|
|
<li>
|
|
|
|
<a href="{{ printf .url }}" title="{{ humanize .id }}" rel="me">
|
2021-07-09 18:00:52 +02:00
|
|
|
{{ partial "font-awesome.html" (dict "iconName" .id "custom" true) }}
|
2021-05-17 20:04:42 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
2022-01-19 16:49:55 +01:00
|
|
|
|
|
|
|
{{ if .Site.Params.rssAsSocialIcon }}
|
|
|
|
{{ $url := "/index.xml" | relLangURL }}
|
|
|
|
<li>
|
|
|
|
<a {{ printf "href=%q" $url | safeHTMLAttr }} title="RSS" rel="me">
|
|
|
|
{{ partial "font-awesome.html" (dict "iconName" "rss" "custom" false) }}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
</ul>
|