1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-15 09:33:15 +00:00
This commit is contained in:
2026-01-15 09:48:41 +01:00
parent 23b6861d82
commit 8b8db14c30
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $client := or .Site.Params.adsense.client (getenv "ADSENSE_CLIENT") -}}
{{- $client := .Site.Params.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>
@@ -1,5 +1,5 @@
{{- $client := or .Site.Params.adsense.client (getenv "ADSENSE_CLIENT") -}}
{{- $slot := or .Site.Params.adsense.inArticleSlot (getenv "ADSENSE_INARTICLE_SLOT") -}}
{{- $client := .Site.Params.adsense.client -}}
{{- $slot := .Site.Params.adsense.inArticleSlot -}}
{{- if and $client $slot (ne hugo.Environment "development") -}}
<div class="ad ad-in-article">
<ins class="adsbygoogle"
+1 -1
View File
@@ -1,4 +1,4 @@
{{- $publisher := or .Site.Params.ethicalads.publisher (getenv "ETHICALADS_PUBLISHER") -}}
{{- $publisher := .Site.Params.ethicalads.publisher -}}
{{- if and $publisher (ne hugo.Environment "development") -}}
{{ if not (.Scratch.Get "ethicalads_loaded") -}}
<script async src="https://media.ethicalads.io/media/client/ethicalads.min.js"></script>