Skip to content

Commit

Permalink
chore: add ads script
Browse files Browse the repository at this point in the history
  • Loading branch information
rxtsel committed Oct 16, 2024
1 parent 56f934d commit 54d3228
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/BaseHead.astro
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ const alternateLinks = alternateLang.map((_lang: LANG) => {
hreflang: _lang
}
})
---

<!-- Global Metadata -->
Expand Down Expand Up @@ -82,3 +83,9 @@ const alternateLinks = alternateLang.map((_lang: LANG) => {
<meta property='twitter:image' content={new URL(image, Astro.url)} />

<Analitycs />

<!-- Ads -->
{Astro.url.pathname.includes('/blog')) && (
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6984927047139306"
crossorigin="anonymous"></script>
)}

0 comments on commit 54d3228

Please sign in to comment.