ads placement - tbd

This commit is contained in:
Zach Harding
2026-04-05 10:17:43 -04:00
parent 17465b13c1
commit 5cdf9b1772
6 changed files with 125 additions and 118 deletions

View File

@@ -1,5 +1,6 @@
---
import BackToTop from "./BackToTop.astro"
import LeftSidebarDesktop from "./LeftSidebarDesktop.astro"
---
<div class="row mb-4">
<div class="col-md-2">
@@ -13,6 +14,7 @@ import BackToTop from "./BackToTop.astro"
<div id="facetContainer"></div>
</div>
</div>
<LeftSidebarDesktop />
</div>
<div class="col-sm-12 col-md-10 mt-0">
<div class="d-flex flex-column gap-1 flex-md-row align-items-center mb-3 w-100 justify-content-start">
@@ -388,5 +390,11 @@ import BackToTop from "./BackToTop.astro"
currentCardId = null;
updateNavButtons(null);
});
// ── AdSense re-init on infinite scroll ───────────────────────────────────
document.addEventListener('htmx:afterSwap', () => {
(window.adsbygoogle = window.adsbygoogle || []).push({});
});
})();
</script>