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

@ -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>

View file

@ -10,4 +10,4 @@
{{ page.content }}
</div>
</article>
{% endblock %}
{% endblock %}