From 5798663cfa3e3d985c187d6dc8a39a03bdf8293a Mon Sep 17 00:00:00 2001 From: tribore <5824063+trib0r3@users.noreply.github.com> Date: Mon, 20 Apr 2020 21:05:22 +0200 Subject: [PATCH 1/2] Add support for sharing buttons --- layouts/partials/sharingbuttons.html | 3 +++ layouts/posts/single.html | 7 +++++++ 2 files changed, 10 insertions(+) create mode 100644 layouts/partials/sharingbuttons.html diff --git a/layouts/partials/sharingbuttons.html b/layouts/partials/sharingbuttons.html new file mode 100644 index 0000000..0eb11f3 --- /dev/null +++ b/layouts/partials/sharingbuttons.html @@ -0,0 +1,3 @@ + \ No newline at end of file diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 19e25f9..2b9d6a5 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -37,6 +37,13 @@ + {{- if .Site.Params.ShareButtons }} +
+
+ {{ partial "sharingbuttons.html" . }} +
+ {{- end }} +
From 44c0436e8fcb6090c5d481e3acd5d238c6dba515 Mon Sep 17 00:00:00 2001 From: tribore <5824063+trib0r3@users.noreply.github.com> Date: Mon, 20 Apr 2020 21:28:49 +0200 Subject: [PATCH 2/2] Adjust sharing position --- layouts/posts/single.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/layouts/posts/single.html b/layouts/posts/single.html index 2b9d6a5..e01da7e 100644 --- a/layouts/posts/single.html +++ b/layouts/posts/single.html @@ -37,13 +37,6 @@
- {{- if .Site.Params.ShareButtons }} -
-
- {{ partial "sharingbuttons.html" . }} -
- {{- end }} -
@@ -65,6 +58,13 @@ {{- end }}
+ {{- if .Site.Params.ShareButtons }} +
+
+ {{ partial "sharingbuttons.html" . }} +
+ {{- end }} + {{ if and (not $.Site.Params.DisableReadOtherPosts) (or .NextInSection .PrevInSection) }}