Add optional social sharing buttons

- Social share buttons appear at the end of every post and page unless you add share: false to their YAML Front Matter
- Fixes #42
This commit is contained in:
Michael Rose
2015-01-21 11:21:50 -05:00
parent 9a1c5ff3e6
commit 87b8d0b129
6 changed files with 89 additions and 1 deletions

View File

@ -36,6 +36,10 @@
<h1>{{ page.title }}</h1>
<div class="article-wrap">
{{ content }}
{% if page.share != false %}
<hr />
{% include _social-share.html %}
{% endif %}
</div><!-- /.article-wrap -->
{% if site.owner.disqus-shortname and page.comments == true %}
<section id="disqus_thread"></section><!-- /#disqus_thread -->

View File

@ -44,6 +44,7 @@
{{ content }}
<hr />
<footer role="contentinfo">
{% if page.share != false %}{% include _social-share.html %}{% endif %}
<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>
</footer>
</div><!-- /.article-wrap -->