Responsive adsense banners on articles

This commit is contained in:
Gustavo 2016-09-14 15:29:46 -03:00
parent e03e8fa3e4
commit c28e2bf4d6
3 changed files with 31 additions and 0 deletions

View file

@ -0,0 +1,12 @@
{% if ADSENSE_AD_CLIENT and ADSENSE_AD_SLOT %}
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
style="display:block"
data-ad-client="{{ ADSENSE_AD_CLIENT }}"
data-ad-slot="{{ ADSENSE_AD_SLOT }}"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{% endif %}