Skip to content

Commit

Permalink
add giscus
Browse files Browse the repository at this point in the history
  • Loading branch information
IceOfSummer authored Aug 30, 2024
1 parent 3a94046 commit ab66101
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,25 @@ jobs:
- name: Build
env:
NEXT_PUBLIC_CND_PUBLIC_PATH_BASE_URL: 'https://selfb.asia/static/particlex/static'
NEXT_PUBLIC_COMMENT_CONTAINER_IDENTIFIER: '.giscus'
NEXT_PUBLIC_COMMENT_SCRIPT_INJECT: |
<script src="https://giscus.app/client.js"
data-repo="IceOfSummer/iceofsummer.github.io"
data-repo-id="R_kgDOJFU7OQ"
data-category="Announcements"
data-category-id="DIC_kwDOJFU7Oc4CUyC7"
data-mapping="pathname"
data-strict="0"
data-reactions-enabled="1"
data-emit-metadata="0"
data-input-position="bottom"
data-theme="preferred_color_scheme"
data-lang="zh-CN"
data-loading="lazy"
crossorigin="anonymous"
async>
</script>
run: 'export BLOG_PATH=${GITHUB_WORKSPACE}/datasource && cd nextjs-particlex-theme && npm run build'

- name: Upload GitHub Pages artifact
Expand Down

0 comments on commit ab66101

Please sign in to comment.