Skip to content

Commit

Permalink
wip: Change ads size
Browse files Browse the repository at this point in the history
  • Loading branch information
lijy91 committed Apr 2, 2024
1 parent 5aafc02 commit 82b33ec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 18 deletions.
8 changes: 0 additions & 8 deletions website/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,6 @@ export default defineConfig({
gtag('config', '${googleAnalyticsId}');
`,
},
{
tag: "script",
attrs: {
src: `https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6049036475236211`,
async: true,
crossorigin: "anonymous",
},
},
],
}),
tailwind({
Expand Down
24 changes: 14 additions & 10 deletions website/src/components/starlight/TableOfContents.astro
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,17 @@ import AstrolightTableOfContents from "@astrojs/starlight/components/TableOfCont
---

<AstrolightTableOfContents {...Astro.props} />
<ins
class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-6049036475236211"
data-ad-slot="3475386518"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
<div style={{ marginTop: "20px" }}>
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6049036475236211"
crossorigin="anonymous"></script>
<ins
class="adsbygoogle"
style="display:inline-block;width:268px;height:268px"
data-ad-client="ca-pub-6049036475236211"
data-ad-slot="3475386518"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>

0 comments on commit 82b33ec

Please sign in to comment.