diff options
Diffstat (limited to 'layouts/shortcodes/social.html')
-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 }} |