Skip to content

Commit e783d65

Browse files
committed
updated config to contain better chat system, updated bot to do the same
1 parent 8adac75 commit e783d65

File tree

2 files changed

+24
-38
lines changed

2 files changed

+24
-38
lines changed

_config.aurora.yml

Lines changed: 23 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -109,36 +109,28 @@ site_meta:
109109
#! @docs https://aurora.tridiamond.tech/guide/plugins.html
110110
#! ---------------------------------------------------------------
111111

112-
# For local development only!
113-
gitalk:
112+
giscus:
114113
enable: false
115-
autoExpand: true
116-
clientID: '9e9f01173af30c7fd8b7'
117-
clientSecret: 'eda4a72205ae299b48a6164359580d24813229c8'
118-
repo: 'adminy.github.io'
119-
owner: 'adminy'
120-
admin: ['adminy']
121-
id: uid
122-
language: en
123-
distractionFreeMode: true
124-
recentComment: true
125-
# proxy: ''
126-
127-
# Valine comment plugin (recommended!)
128-
# see https://valine.js.org/quickstart.html
129-
valine:
130-
enable: false
131-
app_id: 'YXlOIn8hlvxBB63rZCkPhV8H-MdYXbMMI'
132-
app_key: 'd3PCTKckIvJc0sa7rIr8DRkH'
114+
repo: 'adminy/adminy.github.io'
115+
repo_id: 'MDEwOlJlcG9zaXRvcnk5ODA4NzE5NA=='
116+
category: General'
117+
category_id: 'DIC_kwDOBdixGs4CSQhK'
118+
# Available values: pathname | url | title | og:title
119+
mapping: pathname
120+
# Available values: 0 | 1
121+
reactions_enabled: 1
122+
# Available values: 0 | 1
123+
emit_metadata: 1
124+
# Available values: light | dark | dark_high_contrast | transparent_dark | preferred-color-scheme
125+
theme: dark
126+
# Available values: en | zh-C
133127
lang: en
134-
placeholder: Leave your thoughts behind~
135-
visitor: true
136-
meta: ['nick', 'mail']
137-
requiredFields: []
138-
admin: 'adminy'
139-
avatarForce: false
140-
avatar: 'retro'
141-
recentComment: true
128+
# Available value: anonymous
129+
crossorigin: anonymous
130+
# Place the comment box above the comments
131+
input_position: top
132+
# Load the comments lazily
133+
loading: lazy
142134

143135
# Enable Busuanzi statistic plugin
144136
# see http://ibruce.info/2015/04/04/busuanzi/
@@ -164,6 +156,7 @@ valine:
164156
#! ---------------------------------------------------------------
165157
injects:
166158
scripts:
159+
# - <script src="https://giscus.app/client.js" data-repo="adminy/adminy.github.io" data-repo-id="MDEwOlJlcG9zaXRvcnk5ODA4NzE5NA==" data-category="General" data-category-id="DIC_kwDOBdixGs4CSQhK" data-mapping="pathname" data-strict="0" data-reactions-enabled="1" data-emit-metadata="1" data-input-position="top" data-theme="dark" data-lang="en" data-loading="lazy" crossorigin="anonymous" async></script>
167160
css:
168161

169162

@@ -340,15 +333,8 @@ aurora_bot:
340333
- Enjoy reading:<span>「{text}」</span>.
341334
- That's a good pick, enjoy time reading this article.
342335
- Hope you can learn something from:<span>「{text}」</span>.
343-
# Click on Gitalk comment
344-
- selector: '.gt-header-textarea'
345-
text:
346-
- Wanna write something?
347-
- Be sure write your comment carefully meow~
348-
- Anything you want to say to the author?
349-
- If you think the article is good, leave a message for the author.
350-
# Click on Valine comment
351-
- selector: '.veditor'
336+
# Click on comments
337+
- selector: '#comments'
352338
text:
353339
- Wanna write something?
354340
- Be sure write your comment carefully meow~

themes/aurora

0 commit comments

Comments
 (0)