Skip to content

Commit 0392aa5

Browse files
ADS N4
1 parent 4fafa17 commit 0392aa5

File tree

5 files changed

+28
-9
lines changed

5 files changed

+28
-9
lines changed

_includes/google_adsense.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<!-- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ site.google_ad_client }}" crossorigin="anonymous"></script> -->
2-
<script async custom-element="amp-ad" src="https://cdn.ampproject.org/v0/amp-ad-0.1.js"></script>
1+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ site.google_ad_client }}" crossorigin="anonymous"></script>

_includes/google_adsense_amp.html

Lines changed: 0 additions & 6 deletions
This file was deleted.

_layouts/default.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</small>
1919
</p>
2020
<p>
21-
{% include google_adsense_amp.html %}
21+
2222
</p>
2323
</div>
2424
</div>

_layouts/page.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,16 @@ <h1 class="post-title">{{ page.title }}</h1>
88
<div class="post-content">
99
{{ content }}
1010
</div>
11+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ site.google_ad_client }}"
12+
crossorigin="anonymous"></script>
13+
<!-- electronicnomad-github-io-responsive -->
14+
<ins class="adsbygoogle"
15+
style="display:block"
16+
data-ad-client="{{ site.google_ad_client }}"
17+
data-ad-slot="9639921604"
18+
data-ad-format="auto"
19+
data-full-width-responsive="true"></ins>
20+
<script>
21+
(adsbygoogle = window.adsbygoogle || []).push({});
22+
</script>
1123
</article>

_layouts/post.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,20 @@ <h1 class="post-title" itemprop="name headline">{{ page.title }}</h1>
2828
<div class="post-content" itemprop="articleBody">
2929
{{ content }}
3030
</div>
31+
32+
<hr>
33+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ site.google_ad_client }}"
34+
crossorigin="anonymous"></script>
35+
<!-- electronicnomad-github-io-responsive -->
36+
<ins class="adsbygoogle"
37+
style="display:block"
38+
data-ad-client="{{ site.google_ad_client }}"
39+
data-ad-slot="9639921604"
40+
data-ad-format="auto"
41+
data-full-width-responsive="true"></ins>
42+
<script>
43+
(adsbygoogle = window.adsbygoogle || []).push({});
44+
</script>
3145
<hr>
3246
{% if page.comment %}
3347
{% include disqus.html %}

0 commit comments

Comments
 (0)