Hugo 留言系統
Hugo 內建支援使用 Disqus 當作第三方留言系統,但我偏好使用 GitHub issue,於是找到 Utterances 當作第三方留言系統 安裝 提供一個存放留言的 repo,我是使用 github page repo,所以不用建立新的 repo 再來安裝 utterances app 選擇 repo,查看一下要求的權限,沒問題後進行安裝 接下來,根據使用不同主題有不同的配置方式,我的主題是 hugo-PaperMod 新增 layouts/partials/comments.html 檔案,如果檔案或資料夾不存在的話就新增 貼上 utterances 的 javascript 腳本 <script src="https://utteranc.es/client.js" repo="[owner/repo]" issue-term="title" theme="github-light" crossorigin="anonymous" async> </script> 大功告成,底下留言測試一下 參考資料: https://gohugo.io/content-management/comments/