不低于v0.90.0
版本。
自己编译hugo以免出错。
获取代码:
git clone https://github.com/gohugoio/hugo.git
编译hugo:
go build
./hugo version
将hugo
执行文件移到/usr/local/bin/
或其他${PATH}
中的目录。
安装其他依赖:
apt update && apt install npm && npm install -g sass
pip3 install beautifulsoup4 lxml html5lib
编译:
git clone https://github.com/AutumnQuicHe/AutumnQuicHe.github.io
cd AutumnQuicHe.github.io && git submodule update --init
./build.sh
编完结果在public
目录。
./scripts/sass.py && hugo server
调试时无法将
块中多余的换行删掉,所以看起来有点怪。建议挂一个nginx指向public
目录,直接通过执行build.sh
更新结果。
apt update && apt install npm
npm install -g sass
./scripts/sass.py
./scripts/remove_p_linebreaks.py
用于清除
块中多余的空行,这些空行默认会变成空格,影响中文展示。