ads placement - tbd
This commit is contained in:
@@ -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>
|
||||
7
src/components/LeftSidebarDesktop.astro
Normal file
7
src/components/LeftSidebarDesktop.astro
Normal file
@@ -0,0 +1,7 @@
|
||||
<div class="d-none d-xl-block sticky-top mt-5" style="top: 70px;">
|
||||
<ins class="adsbygoogle"
|
||||
style="display:block"
|
||||
data-ad-format="autorelaxed"
|
||||
data-ad-client="ca-pub-1140571217687341"
|
||||
data-ad-slot="8889263515"></ins>
|
||||
</div>
|
||||
Reference in New Issue
Block a user