diff --git a/static/css/elegant.css b/static/css/elegant.css index 9d82f64b..ec53ea48 100644 --- a/static/css/elegant.css +++ b/static/css/elegant.css @@ -182,6 +182,9 @@ article div.article-content ul:not(.articles-timeline) a:hover { text-decoration: none; text-shadow: none; } +article iframe.FlattrButton { + margin-top: 10px; +} .article-content, div.recent-posts p { font: 1.2em/1.6em 'PT Serif', Georgia, 'Times New Roman', Times, Serif; text-align: justify; diff --git a/templates/_includes/flattr.html b/templates/_includes/flattr.html new file mode 100644 index 00000000..2f5c2411 --- /dev/null +++ b/templates/_includes/flattr.html @@ -0,0 +1,32 @@ +{% macro flattr_script() %} +{% if FLATTR_USER %} + +{% endif %} +{% endmacro %} + +{% macro flattr_button(article) %} +{% if FLATTR_USER %} + +{% endif %} +{% endmacro %} diff --git a/templates/article.html b/templates/article.html index 2247cf8d..4be12c89 100644 --- a/templates/article.html +++ b/templates/article.html @@ -79,6 +79,7 @@

Contents

+ {{ flattr.flattr_button(article) }} {% if article.date %}

Published

{% set day = article.date.strftime('%d')|int %} diff --git a/templates/base.html b/templates/base.html index 57088d44..cfdec90a 100644 --- a/templates/base.html +++ b/templates/base.html @@ -49,6 +49,8 @@ {% include '_includes/feeds.html' %} {% endblock feed_links %} {% include '_includes/analytics.html' %} + {% import '_includes/flattr.html' as flattr with context %} + {{ flattr.flattr_script() }}