From c74cf85db5ab729297920242632c0e6fb91aa87f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Evrard Date: Fri, 6 Apr 2018 20:30:26 +0100 Subject: [PATCH] Enable partial sharing It is currently not possible to disable the sharing on a specific site, say google plus or facebook. This allows a configuration item switch to tweak this behavior. --- exampleSite/config.toml | 3 +++ layouts/blog/single.html | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 25f157e..323b6a2 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -25,6 +25,9 @@ faviconfile = "img/logo.png" highlightjs = true progressively = true share = true +# Share to googleplus, twitter, fb, linkedin by default +# disable by setting share_on_ = false +# example: share_on_googleplus = false latestpostcount = 5 github = "example" email = "you@example.com" diff --git a/layouts/blog/single.html b/layouts/blog/single.html index af7988f..a4c6bbb 100644 --- a/layouts/blog/single.html +++ b/layouts/blog/single.html @@ -52,10 +52,18 @@ {{ if .Site.Params.share }} {{ end }} {{ if .Site.Params.posts_navigation }}