README

👋 歡迎來到我的 Blog!

  • 這是第一次嘗試使用 GitHub Actions 所建立的 Blog,順便作為個人筆記的專案。

💡 Hugo PaperMod 如何使用 Disqus 啟用 comments 功能

註冊 Disqus 帳號並建立 Site 至 disqus.com 點右上角 Sign up 並選擇 Publishers 之後建立一個 New Site,類別可隨意 平台點選最下面的 I don't see my platform listed, install manually with Universal Code 按鈕,安裝步驟可先略過,之後還是可以調整平台跟查看 Installation 取得 Shortname,此值之後會貼到 Hugo 的 config.yml 裡 PaperMod 啟用 comments 功能 相關 Feature 設定可參考 PaperMod 的 exampleSite,和 Hugo comments 文件 加入以下設定到 Hugo 的 config.yml # 啟用 comments 功能 params: comments: true # 設定 Disqus Shortname services: disqus: shortname: "<你剛剛從 Disqus 複製的 Shortname>" 因 Hugo 已附帶 Disqus 的模板,所以可直接將以下內容貼到 layouts/partials/comments.html 如目錄跟檔案不存在可自行建立 如需要 override Hugo 模板,參考 官方文件 {{ partial "disqus.html" . }}

July 1, 2025 · 1 分鐘 · Wayne Yang
motorcycle

︊️︊︎️️️☄️ Hello World

這是我的第一篇 Hugo + PaperMod 的文章 🎉

June 26, 2025 · 1 分鐘 · Wayne Yang