_includes/head/script.extension.liquid in jekyll-rtd-theme-2.0.0.pre.beta1 vs _includes/head/script.extension.liquid in jekyll-rtd-theme-2.0.0
- old
+ new
@@ -20,5 +20,10 @@
}
gtag("js", new Date());
gtag("config", "{{ site.google.gtag }}");
</script>
{%- endif -%}
+
+{% comment %} Google AdSense {% endcomment %}
+{%- if site.google.adsense -%}
+ <script data-ad-client="{{ site.google.adsense }}" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+{%- endif -%}