From e0019b8e1fde7930fe03104dc11b391d17e807dd Mon Sep 17 00:00:00 2001 From: "Arael D. Espinosa" Date: Fri, 31 May 2024 15:29:11 -0300 Subject: [PATCH] feat: add ads --- docusaurus.config.ts | 11 +++++++++++ src/pages/index.tsx | 22 ++++++++++++---------- static/CNAME | 1 - 3 files changed, 23 insertions(+), 11 deletions(-) delete mode 100644 static/CNAME diff --git a/docusaurus.config.ts b/docusaurus.config.ts index 3642a22..378d34c 100644 --- a/docusaurus.config.ts +++ b/docusaurus.config.ts @@ -66,6 +66,17 @@ const config: Config = { ] ], + headTags: [ + { + tagName: "script", + attributes: { + src: "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-5927916376173700", + crossOrigin: "anonymous", + async: "true" + } + }, + ], + themeConfig: { // Replace with your project's social card image: 'img/docusaurus-social-card.jpg', diff --git a/src/pages/index.tsx b/src/pages/index.tsx index 720c530..29f9ead 100644 --- a/src/pages/index.tsx +++ b/src/pages/index.tsx @@ -8,7 +8,7 @@ import Heading from '@theme/Heading'; import styles from './index.module.css'; function HomepageHeader() { - const {siteConfig} = useDocusaurusContext(); + const { siteConfig } = useDocusaurusContext(); return (
@@ -32,15 +32,17 @@ function HomepageHeader() { } export default function Home(): JSX.Element { - const {siteConfig} = useDocusaurusContext(); + const { siteConfig } = useDocusaurusContext(); return ( - - -
- -
-
+ <> + + +
+ +
+
+ ); } diff --git a/static/CNAME b/static/CNAME deleted file mode 100644 index 1445514..0000000 --- a/static/CNAME +++ /dev/null @@ -1 +0,0 @@ -wiki.depingaasere.com \ No newline at end of file