From e586805eeac1535c28945a8d5eecfad9e141dc67 Mon Sep 17 00:00:00 2001 From: Brandon Brown Date: Fri, 19 Apr 2024 10:10:58 -0700 Subject: [PATCH] Update google ads display --- brandonb.ca/_includes/ad/post-ad.html | 10 ++++++++++ brandonb.ca/_layouts/post.html | 2 ++ brandonb.ca/index.html | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 brandonb.ca/_includes/ad/post-ad.html diff --git a/brandonb.ca/_includes/ad/post-ad.html b/brandonb.ca/_includes/ad/post-ad.html new file mode 100644 index 0000000..991a46b --- /dev/null +++ b/brandonb.ca/_includes/ad/post-ad.html @@ -0,0 +1,10 @@ +{% if site.google_ads.id %} +
+ +
+{% endif %} diff --git a/brandonb.ca/_layouts/post.html b/brandonb.ca/_layouts/post.html index 057c1d9..986bcc0 100755 --- a/brandonb.ca/_layouts/post.html +++ b/brandonb.ca/_layouts/post.html @@ -27,6 +27,8 @@

{% include anchor_headings.html html=content anchorBody='#' anchorClass='post-heading-anchor' anchorTitle='Link to this section' %} + {% include ad/post-ad.html %} +

diff --git a/brandonb.ca/index.html b/brandonb.ca/index.html index a75725c..51aff2b 100644 --- a/brandonb.ca/index.html +++ b/brandonb.ca/index.html @@ -98,7 +98,7 @@

{% if forloop.index0 == 3 %}
- + {% include ad/post-ad.html %}
{% endif %} {% endunless %}