From 9c269b806842dec5b6da00a1cc86bc9052bb8bfe Mon Sep 17 00:00:00 2001
From: Bud Parr <budparr@gmail.com>
Date: Sat, 15 Apr 2017 13:08:59 +0000
Subject: [PATCH] use a variable for icon size
---
readme.md | 1 +
layouts/partials/social-follow.html | 9 +++++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/layouts/partials/social-follow.html b/layouts/partials/social-follow.html
index 8f22096..da3a602 100644
--- a/layouts/partials/social-follow.html
+++ b/layouts/partials/social-follow.html
@@ -1,21 +1,22 @@
<!-- TODO: Add follow intents where available TODO: Revisit color and hover color -->
+{{ $icon_size := "32px" }}
{{ with .Site.Params.facebook }}
<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>
{{ end }}
{{ with .Site.Params.twitter }}
<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>
{{ end }}
{{ with .Site.Params.instagram }}
<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>
{{ end }}
{{ with .Site.Params.youtube }}
<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>
{{ end }}
diff --git a/readme.md b/readme.md
index 36487f0..b94ec51 100644
--- a/readme.md
+++ b/readme.md
@@ -42,3 +42,4 @@
- ADD INSTRUCTIONS
- 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
+make thumbnails png
--
Gitblit v1.10.0