From 9c269b806842dec5b6da00a1cc86bc9052bb8bfe Mon Sep 17 00:00:00 2001 From: Bud Parr Date: Sat, 15 Apr 2017 09:08:59 -0400 Subject: [PATCH] use a variable for icon size --- layouts/partials/social-follow.html | 9 +++++---- readme.md | 1 + 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 @@ +{{ $icon_size := "32px" }} {{ with .Site.Params.facebook }} - {{ partial "svg/facebook.svg" (dict "size" "32px") }} + {{ partial "svg/facebook.svg" (dict "size" $icon_size) }} {{ end }} {{ with .Site.Params.twitter }} - {{ partial "svg/twitter.svg" (dict "size" "32px") }} + {{ partial "svg/twitter.svg" (dict "size" $icon_size) }} {{ end }} {{ with .Site.Params.instagram }} - {{ partial "svg/instagram.svg" (dict "size" "32px") }} + {{ partial "svg/instagram.svg" (dict "size" $icon_size) }} {{ end }} {{ with .Site.Params.youtube }} - {{ partial "svg/youtube.svg" (dict "size" "32px") }} + {{ partial "svg/youtube.svg" (dict "size" $icon_size) }} {{ end }} diff --git a/readme.md b/readme.md index 36487f0..b94ec51 100644 --- a/readme.md +++ b/readme.md @@ -42,3 +42,4 @@ TODO: - 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