From 703a6af3b270d59529a35b77ec61defa50dbf0f1 Mon Sep 17 00:00:00 2001 From: George Cushen Date: Wed, 25 May 2016 21:26:17 +0100 Subject: [PATCH] Add social `sharing` setting to `config.toml` --- exampleSite/config.toml | 3 +++ layouts/partials/share.html | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 2105eb64..135277cd 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -26,6 +26,9 @@ googleAnalytics = "" # Enable global LaTeX math rendering? If false, you can enable it locally on a per page basis. math = false + # Enable native social sharing buttons? + sharing = true + # Link custom CSS and JS assets (relative to /static/css and /static/js respectively) custom_css = [] custom_js = [] diff --git a/layouts/partials/share.html b/layouts/partials/share.html index b5ebd87e..89893a0c 100644 --- a/layouts/partials/share.html +++ b/layouts/partials/share.html @@ -1,4 +1,4 @@ -{{ if not .Site.Params.disable_sharing }} +{{ if .Site.Params.sharing }}