add custom urls for predefined social icons #120
This commit is contained in:
parent
e1d08892de
commit
10c340b011
4 changed files with 30 additions and 3 deletions
|
@ -1,7 +1,13 @@
|
|||
<ul class="social-icons">
|
||||
|
||||
{{ range $.Site.Params.Social }}
|
||||
{{ if and (isset $.Site.Data.social.social_icons .id) (isset . "name") }}
|
||||
{{ 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") }}
|
||||
{{ $url := index $.Site.Data.social.social_icons .id }}
|
||||
{{ $ref := printf $url .name }}
|
||||
<li>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue