AdSense improvments

See #47.
This commit is contained in:
Alexandre Vicenzi 2016-11-07 22:13:43 -02:00
parent b545f9a56e
commit 6120f6bc25
6 changed files with 99 additions and 1 deletions

View file

@ -1,6 +1,17 @@
{% extends "base.html" %}
{% block content %}
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.index_top %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ads-responsive"
data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}"
data-ad-slot="{{ GOOGLE_ADSENSE.ads.index_top }}"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{% endif %}
{% for article in articles_page.object_list %}
<article>
<header>
@ -38,4 +49,16 @@
{% endfor %}
{% include "partial/pagination.html" %}
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.index_bottom %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle ads-responsive"
data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}"
data-ad-slot="{{ GOOGLE_ADSENSE.ads.index_bottom }}"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{% endif %}
{% endblock %}