AddThis support.

This commit is contained in:
Alexandre Vicenzi 2015-07-21 00:49:51 -03:00
parent d0434a41e8
commit edc47c84ab
4 changed files with 12 additions and 1 deletions

View file

@ -13,6 +13,7 @@ A minimalist [Pelican](http://blog.getpelican.com/) theme.
## Integrations
- AddThis
- Disqus
- Google Analytics
- Google Tag Manager
@ -112,6 +113,10 @@ By default, all article content is shown on Home.
If the article has a custom Summary, the custom summary is shown.
If the article has `Summarise: True` metadata, the default article summary is shown.
## Code Highlight
If you want to replace Pygments theme (default is GitHub) take a look at [Pygments Docs](http://pygments.org/) and replace `pygments.min.css`.
## Live example
You can find a demo [here](http://blog.alexandrevicenzi.com/).

View file

@ -15,6 +15,9 @@
<h2 id="{{ article.slug }}">{{ article.title }}</h2>
<p>Posted on {{ article.locale_date }} in <a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></p>
</header>
{% if ADD_THIS_ID %}
<div class="addthis_sharing_toolbox"></div>
{% endif %}
<div>
{{ article.content }}
</div>

View file

@ -91,6 +91,9 @@
</footer>
</main>
{% include "partial/ga.html" %}
{% if ADD_THIS_ID %}
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid={{ ADD_THIS_ID }}" async="async"></script>
{% endif %}
{% block additional_js %}{% endblock %}
</body>
</html>