Make Google AdSense banner in footer conditional
This commit is contained in:
parent
b5cc7d19a0
commit
50f46ab257
1 changed files with 2 additions and 0 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue