1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-21 13:03:15 +00:00
This commit is contained in:
2026-01-12 18:08:52 +01:00
parent 55f4fd90ad
commit b5514e9e86
26 changed files with 1120 additions and 0 deletions
@@ -0,0 +1,15 @@
{{- $client := or .Site.Params.adsense.client (getenv "ADSENSE_CLIENT") -}}
{{- $slot := or .Site.Params.adsense.inArticleSlot (getenv "ADSENSE_INARTICLE_SLOT") -}}
{{- if and $client $slot (ne hugo.Environment "development") -}}
<div class="ad ad-in-article">
<ins class="adsbygoogle"
style="display:block; text-align:center;"
data-ad-layout="in-article"
data-ad-format="fluid"
data-ad-client="{{ $client }}"
data-ad-slot="{{ $slot }}"></ins>
</div>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
{{- end -}}