added flattr to theme

This commit is contained in:
Marvin Steadfast 2015-10-27 15:53:00 +01:00
parent f3048eb8fe
commit ef6c1b10cd
2 changed files with 6 additions and 0 deletions

View File

@ -34,6 +34,7 @@
<div class="addthis_sharing_toolbox"></div>
</div>
{% endif %}
{% include "partial/flattr.html" %}
{% include "partial/disqus.html" %}
</article>
{% endblock %}

View File

@ -0,0 +1,5 @@
{% if FLATTR_USER %}
<script id='fbc04dc'>
(function(i){var f,s=document.getElementById(i);f=document.createElement('iframe');f.src='//api.flattr.com/button/view/?uid={{ FLATTR_USER }}&button=compact&url='+encodeURIComponent(document.URL);f.title='Flattr';f.height=20;f.width=110;f.scrolling='no';f.style.borderWidth=0;s.parentNode.insertBefore(f,s);})('fbc04dc');
</script>
{% endif %}