mirror of
https://github.com/alexandrev/xslt-lab.git
synced 2026-09-15 09:33:15 +00:00
+1
This commit is contained in:
@@ -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,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>
|
||||
|
||||
Reference in New Issue
Block a user