CyrusYip / cyrusyip-blog

Cyrus Yip's Blog built with Hugo | 叶寻的博客
https://cyrusyip.org/
MIT License
5 stars 1 forks source link
blog giscus hugo hugo-site hugo-theme-yue

Cyrus Yip's Blog

This is Cyrus Yip's personal website. The content of all pages is licensed under CC BY-NC-SA 4.0, other files are licensed under MIT.

Usage

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 pnpm to manage Hugo version, and estruyf/vscode-front-matter to manage content.

# Clone this repo with its submodule.
git clone --recursive git@github.com:CyrusYip/cyrusyip-blog.git
# git clone --recursive https://github.com/CyrusYip/cyrusyip-blog.git

# Install Hugo
cd cyrusyip-blog
pnpm install # Use --force flag when postinstall script is not running

# Preview
pnpm run server

# Build
pnpm run build

Upgrade Hugo

To upgrade Hugo, modify hugo_bin_hugo_version in .npmrc.

-hugo_bin_hugo_version = "0.134.3"
+hugo_bin_hugo_version = "0.135.0"

Then run pnpm update --latest.

Contributing Guidelines

See CONTRIBUTING.md.

Note