diff options
author | uPagge <git@upagge.ru> | 2021-03-14 15:53:44 +0300 |
---|---|---|
committer | uPagge <git@upagge.ru> | 2021-03-14 15:53:44 +0300 |
commit | 5328e51b839fb8aacb3fccebc2228f1ad9516612 (patch) | |
tree | ca3429f702a4049c62318ad97b69a86f72747a62 /layouts | |
parent | a53473d27e38ae20d0b14108a32aa306d13c9d8c (diff) |
toc order and aside ads
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/shortcodes/ads.html | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/layouts/shortcodes/ads.html b/layouts/shortcodes/ads.html index 713ff02..3161fe9 100644 --- a/layouts/shortcodes/ads.html +++ b/layouts/shortcodes/ads.html @@ -1,16 +1,18 @@ {{ 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> +<aside> + <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> -</div> +</aside> {{ end }}
\ No newline at end of file |