1
0
mirror of https://github.com/alexandrev/xslt-lab.git synced 2026-09-18 19:43:16 +00:00
Files
xslt-lab/site/layouts/partials/ethicalads.html
T
alexandrev-tibco c48acd1a8c Add sticky sidebar ad to blog articles, fix EA script loading
- Article pages (single.html): two-column grid layout — article + 160px
  sidebar with sticky EA ad (id="xsltplayground-blog")
- Non-article pages (home, list): keep existing sticky header bar
  (id="xsltplayground-blog-header")
- Move EA script to <head> in baseof.html so it loads on all pages
  regardless of placement; remove script tag from ethicalads partial
- has-ethicalads body class now only applied on non-article pages
  (no 64px header-offset shift on article pages)
- Sidebar hidden on viewports <= 860px (mobile/tablet)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-02 16:22:52 +02:00

10 lines
325 B
HTML

{{- $publisher := .Site.Params.ethicalads.publisher -}}
{{- if $publisher -}}
<div class="ad-bar">
<div class="container ad-bar-inner">
<span class="muted">Sponsored</span>
<div id="xsltplayground-blog-header" data-ea-publisher="{{ $publisher }}" data-ea-type="image"></div>
</div>
</div>
{{- end -}}