feat: integrate Yandex RTB ad block R-A-19259130-1
This commit is contained in:
@@ -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>
|
||||||
@@ -55,6 +55,9 @@ const webPageSchema = {
|
|||||||
<meta name="theme-color" content="#534ab7" />
|
<meta name="theme-color" content="#534ab7" />
|
||||||
<link rel="manifest" href="/manifest.json" />
|
<link rel="manifest" href="/manifest.json" />
|
||||||
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
|
<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" />
|
<slot name="head" />
|
||||||
<title>{title}</title>
|
<title>{title}</title>
|
||||||
<Analytics />
|
<Analytics />
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
import BaseLayout from "./BaseLayout.astro";
|
import BaseLayout from "./BaseLayout.astro";
|
||||||
import AdBanner from "../components/AdBanner.astro";
|
import YandexRTB from "../components/YandexRTB.astro";
|
||||||
import SeoBlock from "../components/SeoBlock.astro";
|
import SeoBlock from "../components/SeoBlock.astro";
|
||||||
import { useT } from "../i18n/translations";
|
import { useT } from "../i18n/translations";
|
||||||
import type { Lang } from "../i18n/translations";
|
import type { Lang } from "../i18n/translations";
|
||||||
@@ -115,7 +115,7 @@ const breadcrumbSchema = {
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-12 flex justify-center">
|
<div class="mt-12 flex justify-center">
|
||||||
<AdBanner size="tile" />
|
<YandexRTB />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<SeoBlock
|
<SeoBlock
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
import BaseLayout from "@/layouts/BaseLayout.astro";
|
import BaseLayout from "@/layouts/BaseLayout.astro";
|
||||||
import GeneratorCard from "@/components/GeneratorCard.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 { generators } from "@/data/generators";
|
||||||
import { useT } from "@/i18n/translations";
|
import { useT } from "@/i18n/translations";
|
||||||
import type { Lang } from "@/i18n/translations";
|
import type { Lang } from "@/i18n/translations";
|
||||||
@@ -47,7 +47,7 @@ const webSiteSchema = {
|
|||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<AdBanner size="leaderboard" />
|
<YandexRTB />
|
||||||
|
|
||||||
<main class="mt-8">
|
<main class="mt-8">
|
||||||
<div
|
<div
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
---
|
---
|
||||||
import BaseLayout from "@/layouts/BaseLayout.astro";
|
import BaseLayout from "@/layouts/BaseLayout.astro";
|
||||||
import GeneratorCard from "@/components/GeneratorCard.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 { generators } from "@/data/generators";
|
||||||
import { useT } from "@/i18n/translations";
|
import { useT } from "@/i18n/translations";
|
||||||
import type { Lang } from "@/i18n/translations";
|
import type { Lang } from "@/i18n/translations";
|
||||||
@@ -43,7 +43,7 @@ const webSiteSchema = {
|
|||||||
</p>
|
</p>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<AdBanner size="leaderboard" />
|
<YandexRTB />
|
||||||
|
|
||||||
<main class="mt-8">
|
<main class="mt-8">
|
||||||
<div
|
<div
|
||||||
|
|||||||
Reference in New Issue
Block a user