From edfa40d322dbba12141b231b86f2d5bedaf60ace Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Fri, 8 Aug 2014 16:07:03 -0400 Subject: [PATCH] Add support for Google AdSense banners - Variables for _config.yml - Includes for sidebar and footer banners --- _config.yml | 4 ++-- _includes/ad-footer.html | 11 +++++++++++ _includes/ad-sidebar.html | 11 +++++++++++ _includes/footer.html | 2 ++ _layouts/post.html | 4 +++- 5 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 _includes/ad-footer.html create mode 100644 _includes/ad-sidebar.html diff --git a/_config.yml b/_config.yml index f5e8c82..6b3313d 100644 --- a/_config.yml +++ b/_config.yml @@ -48,6 +48,6 @@ owner: plus: analytics: verify: - ad-client: - ad-slot: + ad-client: + ad-slot: bing-verify: \ No newline at end of file diff --git a/_includes/ad-footer.html b/_includes/ad-footer.html new file mode 100644 index 0000000..1628318 --- /dev/null +++ b/_includes/ad-footer.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/_includes/ad-sidebar.html b/_includes/ad-sidebar.html new file mode 100644 index 0000000..efc29d8 --- /dev/null +++ b/_includes/ad-sidebar.html @@ -0,0 +1,11 @@ + \ No newline at end of file diff --git a/_includes/footer.html b/_includes/footer.html index d8d801c..806acc5 100644 --- a/_includes/footer.html +++ b/_includes/footer.html @@ -1,3 +1,5 @@ +{% if site.owner.google.ad-client and site.owner.google.ad-slot %}{% include ad-footer.html %}{% endif %} + © {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by Jekyll using the So Simple Theme.
{% if site.owner.twitter %}{% endif %} diff --git a/_layouts/post.html b/_layouts/post.html index b4b8f8c..f8a914a 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -46,7 +46,9 @@ - {% endif %} + + {% endif %} + {% if page.ads != false %}{% include ad-sidebar.html %}{% endif %}
{{ content }}