Skip to content

Commit

Permalink
Add twikoo comment system
Browse files Browse the repository at this point in the history
  • Loading branch information
myp0402 committed Dec 15, 2023
1 parent 385a958 commit fb86e2e
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"valaxy": "0.15.14",
"valaxy-addon-twikoo": "^0.0.3",
"valaxy-theme-yun": "0.15.14"
},
"devDependencies": {
Expand Down
11 changes: 11 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions site.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { defineSiteConfig } from 'valaxy'
import { addonTwikoo } from 'valaxy-addon-twikoo'

export default defineSiteConfig({
mode: "light",
Expand Down
8 changes: 8 additions & 0 deletions valaxy.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineValaxyConfig } from 'valaxy'
import type { UserThemeConfig } from 'valaxy-theme-yun'
import { addonTwikoo } from 'valaxy-addon-twikoo'

// add icons what you will need
const safelist = [
Expand Down Expand Up @@ -48,6 +49,7 @@ export default defineValaxyConfig<UserThemeConfig>({
icp: '萌ICP备20222306号',
},
},

bg_image: {
enable: true,
url: '/images/aharen_bg.jpg',
Expand All @@ -56,4 +58,10 @@ export default defineValaxyConfig<UserThemeConfig>({
},

unocss: { safelist },

addons: [
addonTwikoo({
envId: 'https://myp0402-twikoo.hf.space',
}),
],
})

0 comments on commit fb86e2e

Please sign in to comment.