Skip to content

Commit c97cf74

Browse files
author
aryan
committed
placed native google ad code in blog's single page body as a partial
1 parent df4ecb8 commit c97cf74

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

layouts/blog/single.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
{{- partial "components/pager.html" . -}}
6666
{{ end }}
6767
{{ partial "article-from-this-series/series-articles.html" . }}
68+
{{ partial "google/vertical-ad-cards.html" . }}
6869
{{ partial "related.html" . }}
6970
{{- partial "components/comments.html" . -}}
7071
</main>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7993314093599705"
2+
crossorigin="anonymous"></script>
3+
<ins class="adsbygoogle"
4+
style="display:block"
5+
data-ad-format="autorelaxed"
6+
data-ad-client="ca-pub-7993314093599705"
7+
data-ad-slot="4242029119"></ins>
8+
<script>
9+
(adsbygoogle = window.adsbygoogle || []).push({});
10+
</script>

0 commit comments

Comments
 (0)