~xdavidwu/xdavidwu.link

50f46ab2574e3bf5ae3dd20334fed9d471655265 — Michael Rose 9 years ago b5cc7d1
Make Google AdSense banner in footer conditional
1 files changed, 2 insertions(+), 0 deletions(-)

M _includes/_footer.html
M _includes/_footer.html => _includes/_footer.html +2 -0
@@ 1,3 1,4 @@
{% if site.owner.google.ad-client and site.owner.google.ad-slot %}
<div class="google-ads">
  <!-- 320 x 50 ad -->
  <script async src="http://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>


@@ 9,5 10,6 @@
  (adsbygoogle = window.adsbygoogle || []).push({});
  </script>
</div><!-- /.google-ads -->
{% endif %}

<span>&copy; {{ site.time | date: '%Y' }} {{ site.owner.name }}. Powered by <a href="http://jekyllrb.com">Jekyll</a> using the <a href="http://mademistakes.com/minimal-mistakes/">Minimal Mistakes</a> theme.</span>