Add option to disable social sharing globally
This commit is contained in:
parent
9164c5053d
commit
455067a000
16
_config.yml
16
_config.yml
|
@ -15,7 +15,7 @@ url : "http://localhost:4000" # the base hostname & protoco
|
||||||
baseurl : "/minimal-mistakes" # the subpath of your site, e.g. /blog
|
baseurl : "/minimal-mistakes" # the subpath of your site, e.g. /blog
|
||||||
email : "your-email@domain.com"
|
email : "your-email@domain.com"
|
||||||
logo : "site-logo.png"
|
logo : "site-logo.png"
|
||||||
breadcrumbs : # true / false (default)
|
breadcrumbs : false # true / false (default)
|
||||||
breadcrumb_home_label : "Home"
|
breadcrumb_home_label : "Home"
|
||||||
breadcrumb_separator : "/"
|
breadcrumb_separator : "/"
|
||||||
twitter:
|
twitter:
|
||||||
|
@ -24,6 +24,7 @@ facebook:
|
||||||
username : &facebook "site_facebook"
|
username : &facebook "site_facebook"
|
||||||
app_id :
|
app_id :
|
||||||
publisher :
|
publisher :
|
||||||
|
share : true # false (default), true
|
||||||
comments:
|
comments:
|
||||||
provider : false # false (default), "disqus", "facebook", "google-plus", custom"
|
provider : false # false (default), "disqus", "facebook", "google-plus", custom"
|
||||||
disqus:
|
disqus:
|
||||||
|
@ -130,32 +131,37 @@ defaults:
|
||||||
related: true
|
related: true
|
||||||
# _pages
|
# _pages
|
||||||
- scope:
|
- scope:
|
||||||
path: _pages
|
path: ""
|
||||||
type: pages
|
type: pages
|
||||||
values:
|
values:
|
||||||
layout: single
|
layout: single
|
||||||
author_profile: true
|
author_profile: true
|
||||||
# _recipes
|
# _recipes
|
||||||
- scope:
|
- scope:
|
||||||
path: _recipes
|
path: ""
|
||||||
type: recipes
|
type: recipes
|
||||||
values:
|
values:
|
||||||
layout: single
|
layout: single
|
||||||
author_profile: true
|
author_profile: true
|
||||||
|
share: true
|
||||||
|
comments: true
|
||||||
# _pets
|
# _pets
|
||||||
- scope:
|
- scope:
|
||||||
path: _pets
|
path: ""
|
||||||
type: pets
|
type: pets
|
||||||
values:
|
values:
|
||||||
layout: single
|
layout: single
|
||||||
author_profile: true
|
author_profile: true
|
||||||
|
share: true
|
||||||
|
comment: true
|
||||||
# _portfolio
|
# _portfolio
|
||||||
- scope:
|
- scope:
|
||||||
path: _portfolio
|
path: ""
|
||||||
type: portfolio
|
type: portfolio
|
||||||
values:
|
values:
|
||||||
layout: single
|
layout: single
|
||||||
author_profile: true
|
author_profile: true
|
||||||
|
share: true
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
gems:
|
gems:
|
||||||
|
|
|
@ -25,7 +25,7 @@ layout: default
|
||||||
<hr />
|
<hr />
|
||||||
|
|
||||||
<footer role="contentinfo">
|
<footer role="contentinfo">
|
||||||
{% if page.share %}{% include social-share %}{% endif %}
|
{% if site.share and page.share %}{% include social-share %}{% endif %}
|
||||||
{% if page.date %}
|
{% 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>
|
<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 %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue