Make Google AdSense banner in footer conditional
This commit is contained in:
@ -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>© {{ 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>
|
||||
|
Reference in New Issue
Block a user