From a9dca6c2b837dccbfba553c4ef0715657bbb6112 Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Sun, 22 Dec 2019 14:53:18 +0100 Subject: [PATCH] Syndication --- i18n/en.yaml | 5 ++++- layouts/partials/post_meta.html | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/i18n/en.yaml b/i18n/en.yaml index 6941f8c..b737d8c 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -54,4 +54,7 @@ translation: "Share" - id: interactions - translation: "Interactions" \ No newline at end of file + translation: "Interactions" + +- id: also_on + translation: "Also on" \ No newline at end of file diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 528b12b..c2adeec 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -28,4 +28,9 @@ {{ T "share" }} {{ end }} +{{ end }} +{{ with .Param "syndicate" }} +
+ {{ T "also_on" }}:{{ $delimiter := "" }}{{ range $index, $link := . }}{{ $delimiter }} {{ (urls.Parse $link).Host }}{{ $delimiter = "," }}{{ end }} +
{{ end }} \ No newline at end of file