diff --git a/_config.yml b/_config.yml
index 4dc4e9f47a..296e863c07 100644
--- a/_config.yml
+++ b/_config.yml
@@ -3,6 +3,7 @@ description: Describe your website here.
disqus_shortname:
reading_time: true
words_per_minute: 200
+share: true # turn social share links on/off site-wide
# Your site's domain goes here (eg: https://mmistakes.github.io, http://yourdomain.com, etc)
# When testing locally leave blank or use http://localhost:4000
url:
@@ -62,6 +63,14 @@ kramdown:
toc_levels: 1..6
enable_coderay: false
+defaults:
+ -
+ scope:
+ path: ""
+ type: "posts"
+ values:
+ share: true # turn on social links by default
+
include:
- .htaccess
exclude:
diff --git a/_layouts/page.html b/_layouts/page.html
index f54c5dbe23..34ded59512 100644
--- a/_layouts/page.html
+++ b/_layouts/page.html
@@ -39,7 +39,7 @@
{{ page.title }}
{% if page.comments != false and site.disqus_shortname %}{% endif %}
diff --git a/_layouts/post.html b/_layouts/post.html
index e57778fe7b..82ec6b90c0 100644
--- a/_layouts/post.html
+++ b/_layouts/post.html
@@ -45,7 +45,7 @@
{% if page.modified %}Updated on {{ site.owner.name }}{% endif %}
- {% if page.share != false %}{% include social-share.html %}{% endif %}
+ {% if site.share and page.share %}{% include social-share.html %}{% endif %}
{% if page.comments != false and site.disqus_shortname %}{% endif %}