parent
b545f9a56e
commit
6120f6bc25
6 changed files with 99 additions and 1 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue