If your Hugo version is higher than 2022, running the source repository code directly will result in an error, because some of the functions and methods have been deprecated. For modification, please refer to: Send the error reason to AI and modify it according to the error prompted by AI. Since I didn’t take a screenshot when I modified it, I can’t show it for the time being.
If you use my blog repository code, please delete all my articles and then add your own articles. At the same time, you need to replace all the words such as Rainbow Rabbit and caihongtu that appear.
Welcome banner on the homepage
2025-10-14 update,domain change tocaihongtu.top
Preview:
Welcome banner
Since the project is deployed on Cloudflare, the permanent domain name will probably not expire (unless Cloudflare goes bankrupt), but the current domain name is not necessarily, because the caihongtu.com I want to register is currently registered by someone, so I registered this caihongtu.asia first, and when the com domain name is available for registration, I will immediately take action. (Don’t ask why I don’t go to the other party to buy it, because there is no 💰)
Modify the code
Create a new layouts folder in the root directory of the blog (it exists by default, if not, create it manually), then copy the files under ./themes/hugo-theme-stack/layouts/index.html to the newly created layouts folder (if there are corresponding files in this folder, you don’t need to copy them), then add the following content to index.html:
click here to view code
(Click to expand and collapse)