Add Google AdSense integration and ads.txt files

Added ads.txt files to the project root and docs directory for ad verification. Integrated Google AdSense script and ad unit into docs/index.md to enable ad display on documentation pages.
This commit is contained in:
Wcowin 2025-06-25 11:14:47 +08:00
parent ae9ee6cb5b
commit 7cc59fd0ab
3 changed files with 14 additions and 0 deletions

1
ads.txt Normal file
View File

@ -0,0 +1 @@
google.com, pub-2327435979273742, DIRECT, f08c47fec0942fa0

1
docs/ads.txt Normal file
View File

@ -0,0 +1 @@
google.com, pub-2327435979273742, DIRECT, f08c47fec0942fa0

View File

@ -238,3 +238,15 @@ body::before {
}
</style>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2327435979273742"
crossorigin="anonymous"></script>
<!-- AD1 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-2327435979273742"
data-ad-slot="3702206121"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>