diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index b1c4378..1e86da0 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -1,3 +1,5 @@ +# Build and deploy Hexo site to GitHub Pages (replaces legacy deploy.yml). +# Uses actions/checkout@v4 and actions/setup-node@v4 (npm cache via setup-node; no separate actions/cache step). name: Build and deploy Pages on: diff --git a/.gitignore b/.gitignore index ee8b207..957e8b4 100644 --- a/.gitignore +++ b/.gitignore @@ -6,4 +6,5 @@ node_modules/ public/ .deploy*/ _multiconfig.yml +_config.butterfly.local.yml .agents/ \ No newline at end of file diff --git a/_config.butterfly.yml b/_config.butterfly.yml index 1922f51..3080fb7 100644 --- a/_config.butterfly.yml +++ b/_config.butterfly.yml @@ -410,9 +410,9 @@ addtoany: comments: # Up to two comments system, the first will be shown as default - # Leave it empty if you don't need comments. - # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk - use: + # Choose: Disqus/Disqusjs/Livere/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk + # Migrated from Gitalk (OAuth secrets must never be committed — use env or untracked _config.butterfly.local.yml). + use: Giscus text: true # Display the comment name next to the button # lazyload: The comment system will be load when comment element enters the browser's viewport. # If you set it to true, the comment count will be invalid @@ -439,16 +439,6 @@ disqusjs: livere: uid: -# gitalk -# https://github.com/gitalk/gitalk -gitalk: - client_id: - client_secret: - repo: - owner: - admin: - option: - # valine # https://valine.js.org valine: @@ -495,16 +485,21 @@ twikoo: visitor: false option: -# Giscus -# https://giscus.app/ +# Giscus (GitHub Discussions–based comments; replaces Gitalk) +# Setup: https://giscus.app/ — enable Discussions, install the giscus GitHub App, create a category, then paste repo_id and category_id below. +# Never commit OAuth client secrets; Giscus only needs public repo/category IDs. giscus: - repo: - repo_id: - category_id: - theme: - light: light - dark: dark + repo: Shirolin/Shirolin.github.io + repo_id: R_kgDOJ7cwrQ + category_id: DIC_kwDOJ7cwrc4DFWWs + light_theme: light + dark_theme: dark option: + data-lang: zh-CN + data-mapping: pathname + data-strict: '0' + data-input-position: bottom + data-category: Announcements # Remark42 # https://remark42.com/docs/configuration/frontend/