diff options
author | Raphael Aguiar <rmaguiar@tuta.io> | 2022-08-12 23:55:05 +0300 |
---|---|---|
committer | Raphael Aguiar <rmaguiar@tuta.io> | 2022-08-12 23:55:05 +0300 |
commit | 1d4c030669b181547541c9d1ee41339f2f42d025 (patch) | |
tree | 57047815d0603d0022adecc6b25064b2e6366bfc /layouts | |
parent | 69e4cecc5cc295da87e820cddb60f0591006a4fb (diff) |
Remove leftovers, update Medium URL structure and social shortcode
* Remove leftovers
* Update Medium URL structure and social shortcode
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/social.html | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/layouts/shortcodes/social.html b/layouts/shortcodes/social.html index 5f16551..4ec526a 100644 --- a/layouts/shortcodes/social.html +++ b/layouts/shortcodes/social.html @@ -9,21 +9,21 @@ <div class="social"> - + {{ range .Site.Data.social }} - + {{ $currentEntry := .entry }} {{ $currentLabel := .label }} {{ $currentBase := .base }} {{ $currentIcon := .icon.id }} - + {{ if not .decentralized }} - + {{ with (index $centralized $currentEntry) }} - - {{ $url := printf "%s%s" $currentBase (index . 0) }} - {{ $label := $currentLabel }} + {{ $url := $currentBase | replaceRE "<username>" (index . 0) }} + {{ $label := $currentLabel }} + {{ with (index . 1) }} {{ $label = . }} {{ end }} |