Skip to content

Commit be0cebb

Browse files
committed
留言板设计调整
1 parent 74b830a commit be0cebb

4 files changed

Lines changed: 277 additions & 509 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ on:
1212
discussion_comment:
1313
types: [created, edited, deleted]
1414

15+
concurrency:
16+
group: "pages-deploy" # 全局统一组名,避免频繁评论频繁触发, 确保同一时间只有一个部署任务运行
17+
cancel-in-progress: true # 新触发时取消旧任务
18+
1519
permissions:
1620
contents: read
1721
pages: write
1822
id-token: write
1923

20-
concurrency:
21-
group: "pages"
22-
cancel-in-progress: false
23-
2424
jobs:
2525
setup:
2626
runs-on: ubuntu-22.04

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,4 +86,6 @@ gemini.md
8686
node_modules
8787
a.html
8888
src/data/comments.json
89-
a.json
89+
a.json
90+
src/data/comments.json
91+
b.html

src/components/Comment.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const giscus = config.integ.giscus;
1515
data-reactions-enabled={giscus.reactionsEnabled || '1'}
1616
data-emit-metadata={giscus.emitMetadata || '0'}
1717
data-input-position={giscus.inputPosition || 'top'}
18-
data-theme="light"
18+
data-theme="auto"
1919
data-lang={giscus.lang || 'zh-CN'}
2020
data-loading="lazy"
2121
crossorigin="anonymous"

0 commit comments

Comments
 (0)