Add option to disable social sharing globally

This commit is contained in:
Michael Rose 2016-03-07 11:48:25 -05:00
parent 9164c5053d
commit 455067a000
2 changed files with 12 additions and 6 deletions

View file

@ -15,7 +15,7 @@ url : "http://localhost:4000" # the base hostname & protoco
baseurl : "/minimal-mistakes" # the subpath of your site, e.g. /blog
email : "your-email@domain.com"
logo : "site-logo.png"
breadcrumbs : # true / false (default)
breadcrumbs : false # true / false (default)
breadcrumb_home_label : "Home"
breadcrumb_separator : "/"
twitter:
@ -24,6 +24,7 @@ facebook:
username : &facebook "site_facebook"
app_id :
publisher :
share : true # false (default), true
comments:
provider : false # false (default), "disqus", "facebook", "google-plus", custom"
disqus:
@ -130,32 +131,37 @@ defaults:
related: true
# _pages
- scope:
path: _pages
path: ""
type: pages
values:
layout: single
author_profile: true
# _recipes
- scope:
path: _recipes
path: ""
type: recipes
values:
layout: single
author_profile: true
share: true
comments: true
# _pets
- scope:
path: _pets
path: ""
type: pets
values:
layout: single
author_profile: true
share: true
comment: true
# _portfolio
- scope:
path: _portfolio
path: ""
type: portfolio
values:
layout: single
author_profile: true
share: true
# Plugins
gems:

View file

@ -25,7 +25,7 @@ layout: default
<hr />
<footer role="contentinfo">
{% if page.share %}{% include social-share %}{% endif %}
{% if site.share and page.share %}{% include social-share %}{% endif %}
{% if page.date %}
<p class="byline"><strong>{{ page.title }}</strong> was published on <time datetime="{{ page.date | date_to_xmlschema }}">{{ page.date | date: "%B %d, %Y" }}</time>{% if page.modified %} and last modified on <time datetime="{{ page.modified | date: "%Y-%m-%d" }}">{{ page.modified | date: "%B %d, %Y" }}</time>{% endif %}.</p>
{% endif %}