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 }}
- - - - + {{ if .Site.Params.share_on_fb | default true }} + + {{ end }} + {{ if .Site.Params.share_on_twitter | default true }} + + {{ end }} + {{ if .Site.Params.share_on_googleplus | default true }} + + {{ end }} + {{ if .Site.Params.share_on_linkedin | default true }} + + {{ end }}
{{ end }} {{ if .Site.Params.posts_navigation }}