Skip to content

Commit

Permalink
feat: add ads
Browse files Browse the repository at this point in the history
  • Loading branch information
cl8dep committed May 31, 2024
1 parent 3613868 commit d5c62d5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 11 deletions.
10 changes: 10 additions & 0 deletions docusaurus.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,16 @@ const config: Config = {
]
],

headTags: [
{
tagName: "meta",
attributes: {
name: "google-adsense-account",
content: "ca-pub-5927916376173700",
}
},
],

themeConfig: {
// Replace with your project's social card
image: 'img/docusaurus-social-card.jpg',
Expand Down
22 changes: 12 additions & 10 deletions src/pages/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Heading from '@theme/Heading';
import styles from './index.module.css';

function HomepageHeader() {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<header className={clsx('hero hero--primary', styles.heroBanner)}>
<div className="container">
Expand All @@ -32,15 +32,17 @@ function HomepageHeader() {
}

export default function Home(): JSX.Element {
const {siteConfig} = useDocusaurusContext();
const { siteConfig } = useDocusaurusContext();
return (
<Layout
title={siteConfig.title}
description="Tolondrones para los preguntones">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
<>
<Layout
title={siteConfig.title}
description="Tolondrones para los preguntones">
<HomepageHeader />
<main>
<HomepageFeatures />
</main>
</Layout>
</>
);
}
1 change: 0 additions & 1 deletion static/CNAME

This file was deleted.

0 comments on commit d5c62d5

Please sign in to comment.