Skip to content

Commit

Permalink
change google info ads
Browse files Browse the repository at this point in the history
  • Loading branch information
lihongzheshuai committed Aug 27, 2024
1 parent c7dfdb0 commit db6cb45
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion _includes/custom/custom-info-google-ads.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<article class="card-wrapper card">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-7615326632728696"
crossorigin="anonymous"></script>
<ins class="adsbygoogle"
Expand All @@ -8,4 +9,5 @@
data-ad-slot="1207906041"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</script>
</article>
6 changes: 2 additions & 4 deletions _layouts/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,10 @@ <h1 class="card-title my-2 mt-md-0">{{ post.title }}</h1>
</div>
</a>
</article>
<!-- add google ads -->

{% if forloop.first %}
<!-- first loop -->
<article class="card-wrapper card">
<!-- add google ads -->
{% include custom/custom-info-google-ads.html %}
</article>
{% endif %}
{% endfor %}
</div>
Expand Down

0 comments on commit db6cb45

Please sign in to comment.