diff options
Diffstat (limited to 'layouts/shortcodes/ads.html')
-rw-r--r-- | layouts/shortcodes/ads.html | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/layouts/shortcodes/ads.html b/layouts/shortcodes/ads.html new file mode 100644 index 0000000..713ff02 --- /dev/null +++ b/layouts/shortcodes/ads.html @@ -0,0 +1,16 @@ +{{ with cond $.IsNamedParams ($.Get "slot") "" | default $.Site.Params.Advertising.Google.Slot }} +<div class="{{ if $.Get `circuit` | ne false }}cat-cit{{ end }}"> + <div class="no-adb"> + <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> + <ins class="adsbygoogle" + style="display:block; text-align:center;" + data-ad-layout="in-article" + data-ad-format="fluid" + data-ad-client="{{- with $.Site.Params.Advertising.Google.Client -}}{{ . }}{{ end }}" + data-ad-slot="{{ . }}"></ins> + <script> + (adsbygoogle = window.adsbygoogle || []).push({}); + </script> + </div> +</div> +{{ end }}
\ No newline at end of file |