_includes/casjaysdev/ads.html in casjaysdev-jekyll-theme-0.1.7 vs _includes/casjaysdev/ads.html in casjaysdev-jekyll-theme-0.1.8

- old
+ new

@@ -1,23 +1,46 @@ -<br /> +{% if site.ads.enabled == true %} {% if site.ads.google.client && +site.ads.google.slot %} +<div class="ads"> + <script + async + defer + src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js" + ></script> + <!-- Single post - 1 (yourwebsite.com) --> + <ins + class="adsbygoogle" + style="display: block" + data-ad-slot="{{ slot }}" + data-ad-format="{{ format }}" + data-ad-client="{{ client }}" + ></ins> + <script> + (adsbygoogle = window.adsbygoogle || []).push({}); + </script> + <br /> + {% endif %} {% else %} + <!-- Ads is disabled --> +</div> +{% endif %}