Advertisements on the site

2025-01-23T18:58:40+08:00 | 1分钟阅读 | 更新于 2025-01-23T21:36:54+08:00

Advertisements on the site

About enabling ads on the site.

TL;DR

I have enabled ads on the site. You can use ad blockers to block them if you don’t want to see them.

In the future, I would also consider placing a switch to turn off ads.

The purpose of placing ads is to gain potential income (since I’m now a freelancer), so if you choose not to block them, I’d greatly appreciate it!

Recently, because of this issue , I started researching how to integrate ads into hugo-theme-dream . So I applied for Google AdSense, and it was approved.

Then I started to write code. After some experimentation, I decided to place the ads on the left side of the post and at the bottom of the post.

In the beginning, I was going to plan to place the ads above or below the TOC of the post. However, after trying it out, I realized that the width of the AdSense ads could not be strictly aligned with the width of the TOC, because the width of the TOC is uncontrollable, and AdSense limits the number of ads that can be placed within the restricted width.

In the future, I will continue to optimize the ads feature. For example, these are some of the things I plan to do:

  • Add a switch to turn off ads
  • Integrate ads seamlessly into the homepage

Finally, I have also enabled ads on my site because I want to gain potential income (since I’m now a freelancer). If you don’t want to see ads, you can use ad blockers to block them. If you choose not to block them, I’d greatly appreciate it!

comments powered by Disqus

© 2016 - 2025 g1eny0ung's Blog

🌱 Powered by Hugo with theme Dream.

关于我

Hi,这里是 g1eny0ung 的博客。g1eny0ung(或 g1en)是我在互联网上经常使用的名字。

我是一个热衷于开源的软件工程师,在这里我会记录一些关于技术或者生活上的事情。欢迎你通过评论或者邮件与我交流。

赞助我(Sponsor Me)

如果你喜欢我的作品或者发现它们对你有所帮助,可以考虑给我买一杯咖啡 ☕️。这将激励我在未来创作和维护更多的项目。🦾

👉 请我喝一杯咖啡

If you like my works or find them helpful, please consider buying me a cup of coffee ☕️. It inspires me to create and maintain more projects in the future. 🦾

👉 Buy me a coffee

知识共享(Creative Commons)

此网站的所有内容都遵循 CC BY-NC-SA 4.0

All contents of this website are licensed under CC BY-NC-SA 4.0.

社交链接