Skip to content

Commit 44b53cb

Browse files
committed
测试评论是否生效
1 parent c56a7d3 commit 44b53cb

8 files changed

Lines changed: 780 additions & 8 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
workflow_run:
88
workflows: [build, deploy]
99
branches: [astro-pure-v4_0_3]
10+
discussion:
11+
types: [created, edited, deleted]
12+
discussion_comment:
13+
types: [created, edited, deleted]
1014

1115
permissions:
1216
contents: read
@@ -60,6 +64,11 @@ jobs:
6064
- name: Install Dependencies
6165
run: bun install
6266

67+
- name: Fetch Giscus comments
68+
run: node src/scripts/fetch-comments.js
69+
env:
70+
GITHUB_TOKEN_READ: ${{ secrets.gh_action_token_PAT }}
71+
6372
- name: Build Production
6473
run: bun run build
6574

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,3 +84,4 @@ bunfig.toml
8484

8585
gemini.md
8686
node_modules
87+
a.html

src/components/BaseHead.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,13 @@ const socialImageURL = new URL(ogImage ? ogImage : '/images/social-card.png', As
2626
<link rel='manifest' href='/favicon/site.webmanifest' />
2727

2828
{/* Font preloads */}
29-
<link
29+
<!-- <link
3030
rel='preload'
3131
href='https://npm.elemecdn.com/fontcdn-ariasaka@1.0.0/HYTangMeiRen55W.woff2'
3232
as='font'
3333
type='font/woff2'
3434
crossorigin
35-
/>
35+
/> -->
3636
<!-- <link
3737
rel='preload'
3838
href='https://cdn1.tianli0.top/npm/fontcdn-ariasaka@1.0.0/MONACO.TTF'

src/data/comments.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
[]

0 commit comments

Comments
 (0)