From ffec95f94df12cf30cb337657e23570079b6c15a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Fri, 17 Aug 2018 23:19:40 +0100 Subject: [PATCH] Convert social share buttons to partial --- layouts/_default/flickr.html | 1 + layouts/_default/single.html | 12 +----------- layouts/_default/spotify.html | 1 + layouts/partials/share.html | 11 +++++++++++ 4 files changed, 14 insertions(+), 11 deletions(-) create mode 100644 layouts/partials/share.html diff --git a/layouts/_default/flickr.html b/layouts/_default/flickr.html index 9289a92..19d3916 100644 --- a/layouts/_default/flickr.html +++ b/layouts/_default/flickr.html @@ -27,5 +27,6 @@ + {{ partial "share.html" . }} {{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 4c3c828..f704d82 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -3,16 +3,6 @@
{{ partial "content.html" . }}
- {{ if .Section }} -
- Share this page -

- - - - -

-
- {{ end }} + {{ partial "share.html" . }} {{ end }} diff --git a/layouts/_default/spotify.html b/layouts/_default/spotify.html index e46c204..a5cb69e 100644 --- a/layouts/_default/spotify.html +++ b/layouts/_default/spotify.html @@ -43,5 +43,6 @@ + {{ partial "share.html" . }} {{ end }} diff --git a/layouts/partials/share.html b/layouts/partials/share.html new file mode 100644 index 0000000..02c2a00 --- /dev/null +++ b/layouts/partials/share.html @@ -0,0 +1,11 @@ +{{ if .Section }} +
+ Share this page +

+ + + + +

+
+{{ end }}