By Yuyang Li. Last update on Mar 3, 2024.
The source code of the website is hosted on GitHub Repo: TP-Tong/Website. It is published on the Internet via Cloudflare Pages (in Yuyang's account), and can be accessed via tongclass.ac.cn. It uses the Hugo, with templates from HugoBlox (previously WowChemy) a framework for building static websites.
Please refer to official docs.
Use hugo server
to start a local server.
Use hugo
to compile static files into public
Due to the lack of support of hugo-extended by Cloudflare, we currently need to build the website to generate static files under public/
before pushing the contents. Commits to the main
branch will automatically trigger the website update.
Please refer to official docs for more usage.
If you push the contents to any non-main
branch, you can access the website via https://[BRANCH_NAME].tongclass.ac.cn
(as long as the branch name is not occupied by other DNS items), like https://dev.tongclass.ac.cn
if you push to dev
.