Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/rmaguiar/hugo-theme-color-your-world.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/shortcodes/social.html')
-rw-r--r--layouts/shortcodes/social.html14
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 }}