Browse Source

use a variable for icon size

tags/v1.1
Bud Parr 7 years ago
parent
commit
9c269b8068
No account linked to committer's email address
2 changed files with 6 additions and 4 deletions
  1. 5
    4
      layouts/partials/social-follow.html
  2. 1
    0
      readme.md

+ 5
- 4
layouts/partials/social-follow.html View File

<!-- TODO: Add follow intents where available TODO: Revisit color and hover color --> <!-- TODO: Add follow intents where available TODO: Revisit color and hover color -->
{{ $icon_size := "32px" }}
{{ with .Site.Params.facebook }} {{ with .Site.Params.facebook }}
<a href="{{ . }}" class="link-transition facebook link dib z-999 pt3 pt0-l mr2" title="Facebook link"> <a href="{{ . }}" class="link-transition facebook link dib z-999 pt3 pt0-l mr2" title="Facebook link">
{{ partial "svg/facebook.svg" (dict "size" "32px") }}
{{ partial "svg/facebook.svg" (dict "size" $icon_size) }}
</a> </a>
{{ end }} {{ end }}
{{ with .Site.Params.twitter }} {{ with .Site.Params.twitter }}
<a href="{{ . }}" class="link-transition twitter link dib z-999 pt3 pt0-l mr2" title="Twitter link"> <a href="{{ . }}" class="link-transition twitter link dib z-999 pt3 pt0-l mr2" title="Twitter link">
{{ partial "svg/twitter.svg" (dict "size" "32px") }}
{{ partial "svg/twitter.svg" (dict "size" $icon_size) }}
</a> </a>
{{ end }} {{ end }}
{{ with .Site.Params.instagram }} {{ with .Site.Params.instagram }}
<a href="{{ . }}" class="link-transition instagram link dib z-999 pt3 pt0-l mr2" title="Instagram link"> <a href="{{ . }}" class="link-transition instagram link dib z-999 pt3 pt0-l mr2" title="Instagram link">
{{ partial "svg/instagram.svg" (dict "size" "32px") }}
{{ partial "svg/instagram.svg" (dict "size" $icon_size) }}
</a> </a>
{{ end }} {{ end }}
{{ with .Site.Params.youtube }} {{ with .Site.Params.youtube }}
<a href="{{ . }}" class="link-transition youtube link dib z-999 pt3 pt0-l mr3" title="Youtube link"> <a href="{{ . }}" class="link-transition youtube link dib z-999 pt3 pt0-l mr3" title="Youtube link">
{{ partial "svg/youtube.svg" (dict "size" "32px") }}
{{ partial "svg/youtube.svg" (dict "size" $icon_size) }}
</a> </a>
{{ end }} {{ end }}

+ 1
- 0
readme.md View File

- ADD INSTRUCTIONS - ADD INSTRUCTIONS
- small dummy copyright notice with a formatted date could be added - small dummy copyright notice with a formatted date could be added
- fix hard-coded link to section https://github.com/budparr/gohugo-default-theme/blob/master/layouts/index.html#L32 - fix hard-coded link to section https://github.com/budparr/gohugo-default-theme/blob/master/layouts/index.html#L32
make thumbnails png

Loading…
Cancel
Save