Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

Commit

Permalink
Update google ads display
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonb927 committed Apr 19, 2024
1 parent b26a699 commit e586805
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions brandonb.ca/_includes/ad/post-ad.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{% if site.google_ads.id %}
<div class="post-ad">
<ins class="adsbygoogle"
style="display:block"
data-ad-client="{{ site.google_ads.id }}"
data-ad-slot="1431734572"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
</div>
{% endif %}
2 changes: 2 additions & 0 deletions brandonb.ca/_layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ <h2 itemprop="name headline">
{% include anchor_headings.html html=content anchorBody='#' anchorClass='post-heading-anchor' anchorTitle='Link to this section' %}
</div>

{% include ad/post-ad.html %}

<p class="u-text-center">
</p>
Expand Down
2 changes: 1 addition & 1 deletion brandonb.ca/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ <h2 itemprop="name headline">

{% if forloop.index0 == 3 %}
<div class="main-content-feed-sponsor">
<!-- GOOGLE AD INSERTED AUTOMATICALLY HERE -->
{% include ad/post-ad.html %}
</div>
{% endif %}
{% endunless %}
Expand Down

0 comments on commit e586805

Please sign in to comment.