Skip to content

Commit

Permalink
Add inheritance for social links. (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
LimitedEdition1 authored and Bud Parr committed May 17, 2018
1 parent a89a23c commit 10b6b6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions layouts/partials/social-follow.html
Original file line number Diff line number Diff line change
@@ -1,31 +1,31 @@
<!-- TODO: Add follow intents where available TODO: Revisit color and hover color -->
{{ $icon_size := "32px" }}
{{ with .Site.Params.facebook }}
{{ with .Param "facebook" }}
<a href="{{ . }}" class="link-transition facebook link dib z-999 pt3 pt0-l mr2" title="Facebook link">
{{ partial "svg/facebook.svg" (dict "size" $icon_size) }}
</a>
{{ end }}
{{ with .Site.Params.twitter }}
{{ with .Param "twitter" }}
<a href="{{ . }}" class="link-transition twitter link dib z-999 pt3 pt0-l mr2" title="Twitter link">
{{ partial "svg/twitter.svg" (dict "size" $icon_size) }}
</a>
{{ end }}
{{ with .Site.Params.instagram }}
{{ with .Param "instagram" }}
<a href="{{ . }}" class="link-transition instagram link dib z-999 pt3 pt0-l mr2" title="Instagram link">
{{ partial "svg/instagram.svg" (dict "size" $icon_size) }}
</a>
{{ end }}
{{ with .Site.Params.youtube }}
{{ with .Param "youtube" }}
<a href="{{ . }}" class="link-transition youtube link dib z-999 pt3 pt0-l mr2" title="Youtube link">
{{ partial "svg/youtube.svg" (dict "size" $icon_size) }}
</a>
{{ end }}
{{ with .Site.Params.linkedin }}
{{ with .Param "linkedin" }}
<a href="{{ . }}" class="link-transition linkedin link dib z-999 pt3 pt0-l mr2" title="LinkedIn link">
{{ partial "svg/linkedin.svg" (dict "size" $icon_size) }}
</a>
{{ end }}
{{ with .Site.Params.github }}
{{ with .Param "github" }}
<a href="{{ . }}" class="link-transition github link dib z-999 pt3 pt0-l mr2" title="Github link">
{{ partial "svg/github.svg" (dict "size" $icon_size) }}
</a>
Expand Down

0 comments on commit 10b6b6b

Please sign in to comment.