Quellcode durchsuchen

use a variable for icon size

tags/v1.1
Bud Parr vor 7 Jahren
Ursprung
Commit
9c269b8068
Es ist kein Account mit der E-Mail-Adresse des Committers verbunden
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  1. 5
    4
      layouts/partials/social-follow.html
  2. 1
    0
      readme.md

+ 5
- 4
layouts/partials/social-follow.html Datei anzeigen

@@ -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 }}

+ 1
- 0
readme.md Datei anzeigen

@@ -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

Laden…
Abbrechen
Speichern