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 }