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>