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:
authorRaphael Aguiar <rmaguiar@tuta.io>2022-08-12 23:55:05 +0300
committerRaphael Aguiar <rmaguiar@tuta.io>2022-08-12 23:55:05 +0300
commit1d4c030669b181547541c9d1ee41339f2f42d025 (patch)
tree57047815d0603d0022adecc6b25064b2e6366bfc /layouts
parent69e4cecc5cc295da87e820cddb60f0591006a4fb (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.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 }}