feat: integrate Yandex RTB ad block R-A-19259130-1

This commit is contained in:
emil
2026-05-11 20:52:27 +03:00
parent 7e36ec52ec
commit 7a29e3c192
5 changed files with 19 additions and 6 deletions
+10
View File
@@ -0,0 +1,10 @@
<!-- Yandex.RTB R-A-19259130-1 -->
<div id="yandex_rtb_R-A-19259130-1"></div>
<script>
window.yaContextCb.push(() => {
Ya.Context.AdvManager.render({
blockId: "R-A-19259130-1",
renderTo: "yandex_rtb_R-A-19259130-1"
})
})
</script>
+3
View File
@@ -55,6 +55,9 @@ const webPageSchema = {
<meta name="theme-color" content="#534ab7" />
<link rel="manifest" href="/manifest.json" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<!-- Yandex.RTB -->
<script>window.yaContextCb=window.yaContextCb||[]</script>
<script src="https://yandex.ru/ads/system/context.js" async></script>
<slot name="head" />
<title>{title}</title>
<Analytics />
+2 -2
View File
@@ -1,6 +1,6 @@
---
import BaseLayout from "./BaseLayout.astro";
import AdBanner from "../components/AdBanner.astro";
import YandexRTB from "../components/YandexRTB.astro";
import SeoBlock from "../components/SeoBlock.astro";
import { useT } from "../i18n/translations";
import type { Lang } from "../i18n/translations";
@@ -115,7 +115,7 @@ const breadcrumbSchema = {
</div>
<div class="mt-12 flex justify-center">
<AdBanner size="tile" />
<YandexRTB />
</div>
<SeoBlock
+2 -2
View File
@@ -1,7 +1,7 @@
---
import BaseLayout from "@/layouts/BaseLayout.astro";
import GeneratorCard from "@/components/GeneratorCard.astro";
import AdBanner from "@/components/AdBanner.astro";
import YandexRTB from "@/components/YandexRTB.astro";
import { generators } from "@/data/generators";
import { useT } from "@/i18n/translations";
import type { Lang } from "@/i18n/translations";
@@ -47,7 +47,7 @@ const webSiteSchema = {
</p>
</header>
<AdBanner size="leaderboard" />
<YandexRTB />
<main class="mt-8">
<div
+2 -2
View File
@@ -1,7 +1,7 @@
---
import BaseLayout from "@/layouts/BaseLayout.astro";
import GeneratorCard from "@/components/GeneratorCard.astro";
import AdBanner from "@/components/AdBanner.astro";
import YandexRTB from "@/components/YandexRTB.astro";
import { generators } from "@/data/generators";
import { useT } from "@/i18n/translations";
import type { Lang } from "@/i18n/translations";
@@ -43,7 +43,7 @@ const webSiteSchema = {
</p>
</header>
<AdBanner size="leaderboard" />
<YandexRTB />
<main class="mt-8">
<div