1. 基本功能
首先安装hugo和皮肤
brew install hugo
hugo new site /path/to/site
cd themes
git clone https://github.com/spf13/hyde.git
hugo server --theme=hyde --buildDrafts
浏览器里打开: http://localhost:1313
2. 搞评论
utterances 也是一个利用 GitHub Issues 来做评论的工具,它利用 Primer 达成的 GitHub 还原度非常高。
安装也非常简单,找个模板页把它的配置写上就行了:
<script src="https://utteranc.es/client.js"
repo="[ENTER REPO HERE]"
issue-term="pathname"
theme="github-light"
crossorigin="anonymous"
async>
</script>