social services icons support #6
This commit is contained in:
parent
dc52fdf1b0
commit
269283077f
27 changed files with 268 additions and 106 deletions
19
layouts/partials/social.html
Normal file
19
layouts/partials/social.html
Normal file
|
@ -0,0 +1,19 @@
|
|||
<ul class="social-icons">
|
||||
|
||||
{{ range $.Site.Params.Social }}
|
||||
{{ if and (isset $.Site.Data.social.social_icons .id) (isset . "name") }}
|
||||
{{ $url := index $.Site.Data.social.social_icons .id }}
|
||||
<li>
|
||||
<a href="{{ printf $url .name }}" title="{{ humanize .id }}" rel="me">
|
||||
{{ partial "fontawesome.html" (dict "iconName" .id "custom" false) }}
|
||||
</a>
|
||||
</li>
|
||||
{{ else if (isset . "url") }}
|
||||
<li>
|
||||
<a href="{{ printf .url }}" title="{{ humanize .id }}" rel="me">
|
||||
{{ partial "fontawesome.html" (dict "iconName" .id "custom" true) }}
|
||||
</a>
|
||||
</li>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
</ul>
|
Loading…
Add table
Add a link
Reference in a new issue