测试环境

WSL2 + VSCode

安装必要的软件包

# 安装hugo
sudo apt install hugo

创建网站

# 创建网站, 替换your-website-name为自己想要的名字
hugo new site your-website-name -f yml

配置网站

You can learn more and see more configuration settings that work with the PaperMod theme in the documentation.

本地运行网站

# 进入网站目录
cd your-website-name
# 下载主题
git clone https://github.com/adityatelange/hugo-PaperMod themes/PaperMod --depth=1
# 运行网站
hugo server -D