Skip to content

Commit db43e9e

Browse files
committed
Re-enable manual placed ads
1 parent e2b227d commit db43e9e

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

_includes/head.html

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,8 @@
132132

133133
{% seo %}
134134

135-
{% if include.ads %}
136-
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
137-
<script>
138-
(adsbygoogle = window.adsbygoogle || []).push({
139-
google_ad_client: "ca-pub-7650678322458133",
140-
enable_page_level_ads: true
141-
});
142-
</script>
143-
{% endif %}
135+
<script data-ad-client="ca-pub-7650678322458133" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
136+
137+
138+
144139
</head>

_layouts/post.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
{% endif %}
3131
</div>
3232
{% endif %}
33+
<div>
34+
{% include ads-above-article.html %}
35+
</div>
3336
<article role="main" class="blog-post">
3437
{{ content | replace: 'a href="http', 'a rel="nofollow" href="http' }}
3538
<br> <br>
@@ -90,6 +93,9 @@ <h3>Related Posts:</h3>
9093
</li>
9194
{% endif %}
9295
</ul>
96+
<div>
97+
{% include ads-below-article.html %}
98+
</div>
9399
{% if page.comments %}
94100
<div class="disqus-comments">
95101
{% include disqus.html %}

0 commit comments

Comments
 (0)