This is Cyrus Yip's personal website. The content of all pages is licensed under CC BY-NC-SA 4.0.
The minimal requirement is Git and Hugo.
# Clone this repo with its submodule.
git clone --recursive https://github.com/CyrusYip/cyrusyip-blog.git
# Preview
cd cyrusyip-blog
hugo server
I use npm to manage Hugo version, and estruyf/vscode-front-matter to manage content.
# Clone this repo with its submodule.
git clone --recursive https://github.com/CyrusYip/cyrusyip-blog.git
# git clone --recursive git@github.com:CyrusYip/cyrusyip-blog.git
# Install Hugo
cd cyrusyip-blog
npm install
# Preview
npm run dev
# Build
npm run build
See CONTRIBUTING.md.
- When Hugo version is upgraded, package.json, vercel.json, netlify.toml and .Rprofile should be modified accordingly.
- When config.toml is modified, run
./apply-no-comments-patch
.
- Posts after 2024-05-11 use a detailed date that contains time and timezone, such as
2024-05-12T00:22:18+08:00
. Posts before 2024-05-11 use a undetailed date, such as'2023-12-20'
. If I change the undetailed dates into the detailed ones, lastmod will be changed, which is unwanted. Thus I keep them unchanged for now.