AddThis support.
This commit is contained in:
parent
d0434a41e8
commit
edc47c84ab
4 changed files with 12 additions and 1 deletions
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -10,4 +10,4 @@
|
|||
{{ page.content }}
|
||||
</div>
|
||||
</article>
|
||||
{% endblock %}
|
||||
{% endblock %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue