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-14 22:52:35 +01:00
parent 2a89e89567
commit c7ad9c4b67
31 changed files with 1108 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
{{- $publisher := or .Site.Params.ethicalads.publisher (getenv "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>
{{ .Scratch.Set "ethicalads_loaded" true }}
{{- end }}
<div class="ad-bar">
<div class="container ad-bar-inner">
<span class="muted">Sponsored</span>
<div class="ethical-ad" data-ea-publisher="{{ $publisher }}" data-ea-type="image"></div>
</div>
</div>
{{- end -}}