Papermod 架站美化

1. 留言板 我本來是使用 Cusdis,一款不限 Github 用戶就可留言的外掛,但某天 Cusdis 直接 shut down,所以我就轉用 utterances。 介面一樣好看,使用方便,唯一缺點就是只限 Github 用戶留言。 使用utterances,copy 代碼後填上自己的 repo,貼在 themes/layouts/partials/comments.html 內即可使用。 2. 友鏈 參考Aimer’s Blog的 code 架設。 目前還沒有網友,但這個版型很好看,之後也可以當作放作品集的頁面。 3. Buy me a coffee 使用bmc-button by isqua shortcode。 如果想要點入時另開新視窗,可以在 shortcodes/bmc-button.html 下在原本 code 的 href 後增加 target="_blank"。 <a class="hugo-shortcodes-bmc-button" href="{{ $url | safeURL }}" target="_blank" > 4. 目錄放側邊 原出處 Sulv 的文章好像已經失效了,我是參考使用3rd’s Blog 的 code 設置的。 設置完後在文章打開目錄。 --- showToc: true # 顯示目錄 TocOpen: true # 預設打開目錄 --- 5....

April 19, 2025 · Yun