parent
b545f9a56e
commit
6120f6bc25
6 changed files with 99 additions and 1 deletions
|
@ -23,6 +23,17 @@
|
|||
{% endif %}
|
||||
</p>
|
||||
</header>
|
||||
|
||||
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.article_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.article_top }}"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
<div>
|
||||
{{ article.content }}
|
||||
</div>
|
||||
|
@ -55,6 +66,16 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.article_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.article_bottom }}"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% include "partial/disqus.html" %}
|
||||
</article>
|
||||
{% endblock %}
|
||||
|
|
|
@ -59,6 +59,16 @@
|
|||
{% endblock %}
|
||||
|
||||
<title>{{ SITENAME }}{% block title %}{% endblock %}</title>
|
||||
|
||||
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.page_level_ads %}
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({
|
||||
google_ad_client: "{{ GOOGLE_ADSENSE.ca_id }}",
|
||||
enable_page_level_ads: true
|
||||
});
|
||||
</script>
|
||||
{% endif %}
|
||||
</head>
|
||||
<body>
|
||||
{% if GOOGLE_TAG_MANAGER %}
|
||||
|
@ -97,8 +107,29 @@
|
|||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.aside %}
|
||||
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
|
||||
<ins class="adsbygoogle ads-aside"
|
||||
data-ad-client="{{ GOOGLE_ADSENSE.ca_id }}"
|
||||
data-ad-slot="{{ GOOGLE_ADSENSE.ads.aside }}"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
</aside>
|
||||
<main>
|
||||
{% if GOOGLE_ADSENSE and GOOGLE_ADSENSE.ads.main_menu %}
|
||||
<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.main_menu }}"></ins>
|
||||
<script>
|
||||
(adsbygoogle = window.adsbygoogle || []).push({});
|
||||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if MAIN_MENU %}
|
||||
<nav>
|
||||
<a href="{{ SITEURL }}">{{ _('Home') }}</a>
|
||||
|
|
|
@ -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