~xdavidwu/xdavidwu.link

455067a0007da9edfbb79e67714d300672eeaf98 — Michael Rose 8 years ago 9164c50
Add option to disable social sharing globally
2 files changed, 12 insertions(+), 6 deletions(-)

M _config.yml
M _layouts/single.html
M _config.yml => _config.yml +11 -5
@@ 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:

M _layouts/single.html => _layouts/single.html +1 -1
@@ 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 %}