use a variable for icon size
This commit is contained in:
parent
789d32ad81
commit
9c269b8068
|
@ -1,21 +1,22 @@
|
||||||
<!-- 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 }}
|
||||||
|
|
|
@ -42,3 +42,4 @@ TODO:
|
||||||
- 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…
Reference in a new issue