1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-16 18:23:16 +00:00

Add in-content EthicalAds text placement on reference pages

Adds a second ad unit (text type) just before the "Open live example"
CTA on all /xslt/functions/ pages. Increases ad visibility on long
reference pages where the sticky header unit may scroll out of view.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
alexandrev-tibco
2026-04-19 16:07:08 +02:00
parent 9420a2b094
commit fd5caf8ff2
+5
View File
@@ -17,6 +17,11 @@
<div class="content">
{{ .Content }}
</div>
{{- if and .Site.Params.ethicalads.publisher (ne hugo.Environment "development") -}}
<div class="ad">
<div class="ethical-ad" data-ea-publisher="{{ .Site.Params.ethicalads.publisher }}" data-ea-type="text"></div>
</div>
{{- end }}
<div class="ref-try">
{{ if .Params.tryUrl }}
<a href="{{ .Params.tryUrl }}" class="button" target="_blank" rel="noopener noreferrer">Open live example in XSLT Playground →</a>