From cf90fc5ff793811ac40cee918c99f846fce70b1e Mon Sep 17 00:00:00 2001 From: Julien Palard Date: Sun, 2 Sep 2018 11:20:55 +0200 Subject: [PATCH] Configure ads. --- theme/templates/article.html | 1 + theme/templates/article_infos.html | 4 ++-- theme/templates/index.html | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/theme/templates/article.html b/theme/templates/article.html index 06110b4..c28dfa6 100644 --- a/theme/templates/article.html +++ b/theme/templates/article.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block title %}{{ article.title|striptags }}{% endblock %} {% block content %} +{% set ads = True %}
diff --git a/theme/templates/article_infos.html b/theme/templates/article_infos.html index e9354ac..4801c1d 100644 --- a/theme/templates/article_infos.html +++ b/theme/templates/article_infos.html @@ -20,7 +20,7 @@ {% include 'taglist.html' %} {% import 'translations.html' as translations with context %} {{ translations.translations_for(article) }} - +{% if ads %} - +{% endif %} diff --git a/theme/templates/index.html b/theme/templates/index.html index 6019987..54b4a9e 100644 --- a/theme/templates/index.html +++ b/theme/templates/index.html @@ -1,6 +1,7 @@ {% extends "base.html" %} {% block content_title %}{% endblock %} {% block content %} +{% set ads = False %} {% if articles %} {% for article in articles_page.object_list %}