From eb9780bcb90a2c1122f658b8a8e0e43029e5077f Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Wed, 4 Dec 2019 22:43:07 +0100 Subject: [PATCH] Add share link option --- i18n/de.yaml | 5 ++++- i18n/en.yaml | 5 ++++- layouts/partials/post_meta.html | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/i18n/de.yaml b/i18n/de.yaml index a3556b6..e38ffef 100644 --- a/i18n/de.yaml +++ b/i18n/de.yaml @@ -48,4 +48,7 @@ translation: "Senden" - id: related - translation: "Ähnlich" \ No newline at end of file + translation: "Ähnlich" + +- id: share + translation: "Teilen" \ No newline at end of file diff --git a/i18n/en.yaml b/i18n/en.yaml index ccab0d3..aa71ab3 100644 --- a/i18n/en.yaml +++ b/i18n/en.yaml @@ -48,4 +48,7 @@ translation: "Send" - id: related - translation: "Related" \ No newline at end of file + translation: "Related" + +- id: share + translation: "Share" \ No newline at end of file diff --git a/layouts/partials/post_meta.html b/layouts/partials/post_meta.html index 27af50a..e54d4d8 100644 --- a/layouts/partials/post_meta.html +++ b/layouts/partials/post_meta.html @@ -23,4 +23,9 @@ {{ end }} {{ end }} +{{ if .Param "shareLink" }} +
+ {{ T "share" }} +
+{{ end }} {{ end }} \ No newline at end of file