赞
踩
https://github.com/gohugoio/hugo/releases/download/v0.127.0/hugo_extended_0.127.0_windows-amd64.zip
hugo version
验证是否设置正确https://github.com/git-for-windows/git/releases/download/v2.45.2.windows.1/Git-2.45.2-64-bit.exe
Git Bash Here
git submodule add
这一步会拉取失败在桌面右键打开Git bash运行以下命令
hugo new site quickstart
cd quickstart
git init
git submodule add https://github.com/woniu336/hugo-magic.git themes/hugo-magic
拷贝hugo-magic主题核心文件到根目录 quickstart
cp -rf themes/hugo-magic/exampleSite/* .
rm hugo.toml
mkdir -p data/summary
mkdir -p assets/img
cp themes/hugo-magic/data/footer_links.json data/
cp themes/hugo-magic/data/summary/summary.json data/summary/
cp -r themes/hugo-magic/archetypes .
cp -r themes/hugo-magic/shell .
cp -r themes/hugo-magic/static .
cp themes/hugo-magic/.gitignore .
hugo server -D
打开浏览器,输入地址: http://localhost:1313/
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。