From 41109cec4f01c35a05f0c4988169d87e060a775a Mon Sep 17 00:00:00 2001 From: Struchkov Mark Date: Thu, 5 Sep 2024 21:57:39 +0300 Subject: [PATCH] added _Ads --- quartz/components/_Ads.tsx | 22 +++++++++++++++++++ quartz/components/{Remark.tsx => _Remark.tsx} | 0 quartz/components/index.ts | 6 +++-- 3 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 quartz/components/_Ads.tsx rename quartz/components/{Remark.tsx => _Remark.tsx} (100%) diff --git a/quartz/components/_Ads.tsx b/quartz/components/_Ads.tsx new file mode 100644 index 000000000..bee1c12ce --- /dev/null +++ b/quartz/components/_Ads.tsx @@ -0,0 +1,22 @@ +import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" +// @ts-ignore +import { classNames } from "../util/lang" + +const Ads: QuartzComponent = ({ displayClass, fileData }: QuartzComponentProps) => { + return ( +
+
+
+

Спонсор поста: VDSina

+ +
+
+

Хостинг провайдер, которым пользуюсь сам. Сервера на территории РФ и Нидерландов, 2 ТБ трафика на + сервер. И возможность установить свой образ ОС.
– – – – –
Скидка 10% при регистрации по + ссылке: https://vdsina.ru/?partner=3yw9q78nd5 +

+
+
+ ) +} +export default (() => Ads) satisfies QuartzComponentConstructor diff --git a/quartz/components/Remark.tsx b/quartz/components/_Remark.tsx similarity index 100% rename from quartz/components/Remark.tsx rename to quartz/components/_Remark.tsx diff --git a/quartz/components/index.ts b/quartz/components/index.ts index c80b165c7..2f75a6bca 100644 --- a/quartz/components/index.ts +++ b/quartz/components/index.ts @@ -20,10 +20,11 @@ import MobileOnly from "./MobileOnly" import RecentNotes from "./RecentNotes" import Breadcrumbs from "./Breadcrumbs" import Comments from "./Comments" -import Remark from "./Remark" +import Remark from "./_Remark" import ScrollToTop from "./_ScrollToTop" import GithubSource from "./_GithubSource" import RandomPageButton from "./_RandomPageButton" +import Ads from "./_Ads" export { ArticleTitle, @@ -51,5 +52,6 @@ export { Remark, GithubSource, ScrollToTop, - RandomPageButton + RandomPageButton, + Ads }