preloader
Github網站筆記

為Hugo網頁加入Disqus留言板

參考Hahow課程,Github免費架站術!輕鬆打造個人品牌,第四章單元二。

https://avnet.business.hahow.in/classroom/VL13FwO_LVgCkcWsKTPsSA

步驟一:

先去Disqus官網 https://disqus.com/

申請帳號,去開一個新的Site

https://disqus.com/admin/create/

image

步驟二:

點選 I don’t see my platform listed, install manually …

拉到最下面,點選 configure

image

image

Website URL 填入自己的網站

Language 選 Chinese (Taiwan) 然後 Next

image

我選 Balanced,然後 Complete Setup

image

步驟三:

到程式碼裡加Disqus設定

到 EXAMPLESITE/config/_default/hugo.toml

填入Disqus short name

可以在Disqus,Sites -> Edit Settings 裡面找到

image

image

步驟四:

檢查文章設定有無Disqus設定

到 Themes/layouts/_default/single.html

image

我選的Liva Hugo 主題default有內建,加入Shortname 即可生效。

生效後要將網頁上傳後才能看到,local 本地端僅有Disqus描述,看不到留言板

image

comments powered by Disqus