diff options
author | Tony Blyler <tony@blyler.cc> | 2016-11-03 22:59:13 +0300 |
---|---|---|
committer | Tony Blyler <tony@blyler.cc> | 2016-11-03 22:59:13 +0300 |
commit | 6db1e12b76e45c8d7088f5d62832d06707099274 (patch) | |
tree | a75b82749a03a90af5b9203b36b7f46b0a9e312f /layouts | |
parent | 419fb6e310209afe3f1b35c4ef84b2d61ba5bfc7 (diff) |
Set social image sizes in img property
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/header.html | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/layouts/partials/header.html b/layouts/partials/header.html index c3d1ed9..21bebeb 100644 --- a/layouts/partials/header.html +++ b/layouts/partials/header.html @@ -20,29 +20,30 @@ {{ end }} </a> <div id="social"> + {{ $icon_size := "64px" }} {{ if .Site.Params.email }} <a href="mailto:{{ .Site.Params.email }}" title="Email"> - <img alt="Email" src="{{ .Site.BaseURL }}/images/email.svg" /> + <img alt="Email" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/email.svg" /> </a> {{ end }} {{ if .Site.Params.github }} <a href="https://github.com/{{ .Site.Params.github }}" title="Github"> - <img alt="GitHub" src="{{ .Site.BaseURL }}/images/github.svg" /> + <img alt="GitHub" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/github.svg" /> </a> {{ end }} {{ if .Site.Params.facebook }} <a href="https://facebook.com/{{ .Site.Params.facebook }}" title="Facebook"> - <img alt="Facebook" src="{{ .Site.BaseURL }}/images/facebook.svg" /> + <img alt="Facebook" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/facebook.svg" /> </a> {{ end }} {{ if .Site.Params.twitter }} <a href="https://twitter.com/{{ .Site.Params.twitter }}" title="Twitter"> - <img alt="Twitter" src="{{ .Site.BaseURL }}/images/twitter.svg" /> + <img alt="Twitter" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/twitter.svg" /> </a> {{ end }} {{ if .Site.Params.linkedin }} <a href="https://linkedin.com/in/{{ .Site.Params.linkedin }}" title="LinkedIn"> - <img alt="LinkedIn" src="{{ .Site.BaseURL }}/images/linkedin.svg" /> + <img alt="LinkedIn" height="{{ $icon_size }}" width="{{ $icon_size }}" src="{{ .Site.BaseURL }}/images/linkedin.svg" /> </a> {{ end }} </div> |