mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-21 13:03:15 +00:00
deploy: 36e2c286f4
This commit is contained in:
@@ -1,5 +0,0 @@
|
||||
{{- $client := or .Site.Params.adsense.client (getenv "ADSENSE_CLIENT") -}}
|
||||
{{- if and $client (ne hugo.Environment "development") -}}
|
||||
<meta name="google-adsense-account" content="{{ $client }}">
|
||||
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client={{ $client }}" crossorigin="anonymous"></script>
|
||||
{{- end -}}
|
||||
@@ -1,15 +0,0 @@
|
||||
{{- $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 -}}
|
||||
Reference in New Issue
Block a user