updated Ads
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Struchkov Mark 2024-09-05 23:26:26 +03:00
parent 63e82e5765
commit 691755ac0b
No known key found for this signature in database
GPG Key ID: A3F0AC3F0FA52F3C

View File

@ -1,6 +1,4 @@
import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types" import { QuartzComponent, QuartzComponentConstructor, QuartzComponentProps } from "./types"
// @ts-ignore
const YandexMetrika: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => { const YandexMetrika: QuartzComponent = ({ displayClass, cfg }: QuartzComponentProps) => {
const embedScript = ` const embedScript = `
@ -21,9 +19,16 @@ const YandexMetrika: QuartzComponent = ({ displayClass, cfg }: QuartzComponentPr
<> <>
<script dangerouslySetInnerHTML={{ __html: embedScript }}></script> <script dangerouslySetInnerHTML={{ __html: embedScript }}></script>
<noscript> <noscript>
<div><img src="https://mc.yandex.ru/watch/98254050" style="position:absolute; left:-9999px;" alt="" /></div> <div>
<img
src="https://mc.yandex.ru/watch/98254050"
style={{ position: "absolute", left: "-9999px" }}
alt=""
/>
</div>
</noscript> </noscript>
</> </>
) )
} }
export default (() => YandexMetrika) satisfies QuartzComponentConstructor export default (() => YandexMetrika) satisfies QuartzComponentConstructor