diff --git a/templates/adsense-banner.html b/templates/adsense-banner.html deleted file mode 100644 index 8e47f64..0000000 --- a/templates/adsense-banner.html +++ /dev/null @@ -1,12 +0,0 @@ - -{% if ADSENSE_AD_CLIENT and ADSENSE_AD_SLOT %} - - - -{% endif %} diff --git a/templates/article.html b/templates/article.html index 6c7d474..d9c172a 100644 --- a/templates/article.html +++ b/templates/article.html @@ -13,9 +13,6 @@
- {% if SHOW_ADSENSE_ARTICLE_TOP %} - {% include "adsense-banner.html" %} - {% endif %}

{{ article.title }}

{{ _('Posted on %(when)s in %(category)s', @@ -31,8 +28,16 @@ {{ article.content }} - {% if SHOW_ADSENSE_ARTICLE_BOTTOM %} - {% include "adsense-banner.html" %} + {% if ADSENSE.adClientId and ADSENSE.adSlot.articleBottom %} + + + {% endif %}

diff --git a/templates/base.html b/templates/base.html index 214ba04..83bed54 100644 --- a/templates/base.html +++ b/templates/base.html @@ -97,8 +97,34 @@ {% endfor %}
+ + {% if ADSENSE.adClientId and ADSENSE.adSlot.aside %} + + + + {% endif %} +
+ + {% if ADSENSE.adClientId and ADSENSE.adSlot.top %} + + + + {% endif %} + {% if MAIN_MENU %}
{% endfor %} +{% if ADSENSE.adClientId and ADSENSE.adSlot.homeBottom %} + + + +{% endif %} + {% include "partial/pagination.html" %} {% endblock %}