Skip to content

Commit

Permalink
Giscus comment
Browse files Browse the repository at this point in the history
  • Loading branch information
kelegele committed Dec 22, 2023
1 parent b46b4d6 commit 88805fc
Show file tree
Hide file tree
Showing 10 changed files with 61 additions and 24 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"editor.wordBasedSuggestions": "off"
}
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
},
"devDependencies": {
"@vuepress/client": "2.0.0-rc.0",
"@waline/client": "3.0.0-alpha.8",
"vue": "^3.3.12",
"vuepress": "2.0.0-rc.0",
"vuepress-plugin-search-pro": "2.0.0-rc.5",
Expand Down
9 changes: 8 additions & 1 deletion src/.vuepress/navbar/en.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { navbar } from 'vuepress-theme-hope'

export const enNavbar = navbar(['/en/', '/aboutMe'])
export const enNavbar = navbar([
{
text: 'Home',
link: '/en/',
icon: 'home'
},
'/aboutMe'
])
9 changes: 8 additions & 1 deletion src/.vuepress/navbar/zh.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
import { navbar } from 'vuepress-theme-hope'

export const zhNavbar = navbar(['/', '/aboutMe'])
export const zhNavbar = navbar([
{
text: '主页',
link: '/',
icon: 'home'
},
'/aboutMe'
])
Binary file added src/.vuepress/public/avatar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/.vuepress/public/images/WeChat-QRCode.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 21 additions & 9 deletions src/.vuepress/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ export default hopeTheme({
backToTop: true,
rtl: false,
pure: false,

darkmode: 'switch',
logo: '/logo-black-bg.png',
logoDark: '/logo.png',

hostname: 'https://blog.kelegele.com',

author: {
name: 'Felix',
url: 'https://blog.kelegele.com/aboutMe',
url: '/aboutMe',
email: '[email protected]'
},

Expand All @@ -33,6 +33,8 @@ export default hopeTheme({
docsDir: 'src',

blog: {
avatar: '/avatar.jpg',
name: 'Felix',
roundAvatar: true,
medias: {
Email: 'mailto:[email protected]',
Expand Down Expand Up @@ -60,7 +62,7 @@ export default hopeTheme({
footer: 'Kelegele',

displayFooter: true,
copyright: 'MIT Licensed | Copyright © 2023 Kelegele',
copyright: 'MIT Licensed | Copyright © 2019~2023 Kelegele',

blog: {
description: 'INFJ Explorer',
Expand All @@ -87,7 +89,7 @@ export default hopeTheme({
footer: '可了个乐',

displayFooter: true,
copyright: 'MIT Licensed | Copyright © 2023 可了个乐',
copyright: 'MIT Licensed | Copyright © 2019~2023 可了个乐',

blog: {
description: '⁉️复杂多元世界探险家<br/>乐观现实主义梦想家➿',
Expand All @@ -114,19 +116,29 @@ export default hopeTheme({
blog: true,
activeHeaderLinks: true,
copyright: {
global: true,
author: 'Felix (blog.kelegele.com)',
license: 'MIT',
triggerLength: 1
},
// Github: blog-comment
// Vercel: blog-comment
// LeanCloud: blog-comment
// comment: {
// provider: 'Waline',
// serverURL: 'https://blog-comment-kelegele.vercel.app/',
// dark: 'auto',
// requiredMeta: ['nick', 'mail'],
// wordLimit: [3, 1000]
// },

// Github: kelegele/blog-comment
comment: {
provider: 'Waline',
serverURL: 'https://blog-comment-kelegele.vercel.app/',
dark: 'auto',
requiredMeta: ['nick', 'mail'],
wordLimit: [3, 1000]
provider: 'Giscus',
repo: 'kelegele/blog-comment',
repoId: 'R_kgDOK8wYgw',
category: 'Announcements',
categoryId: 'DIC_kwDOK8wYg84Cb8Xp'
},

// all features are enabled for demo, only preserve features you need here
Expand Down
12 changes: 6 additions & 6 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ sticky: false #非置顶
star: false #非收藏
layout: BlogHome
icon: home
title: 主页
title: 主页 - 可了个乐
heroImage: /logo.png
heroImageDark: /logo.png
heroAlt: 可了个乐 Kelegele Logo
Expand All @@ -14,9 +14,9 @@ bgImage: /images/homeCover.jpg
bgImageDark: /images/homeCover.jpg
heroFullScreen: true
tagline: ⁉️复杂多元世界探险家<br/>乐观现实主义梦想家➿
# projects:
# - icon: project
# name: 项目名称
# desc: 项目详细描述
# link: https://你的项目链接
projects:
- icon: friend
name: 可了个乐
desc: 这是友联示例
link: https://blog.kelegele.com
---
19 changes: 14 additions & 5 deletions src/aboutMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ next: false

- ### 『可了个乐』or「Kelegele」

个人正在使用的类 IP 的代号,通常展现于互联网。
本人正在使用的类 IP 的代号,通常展现于互联网。

- ### Felix or Felicis

Expand All @@ -29,14 +29,18 @@ next: false
## 关于作者 🌈

一个互联网从业者,AI 应用探索小白,热爱科学,极客思维。

关注政治、互联网、两性、社交以及具有创新性的事物。

常出没于 **Bilibili、知乎、X、微信类产品**

## 关于本站 🌴

### 站名起源

少不更事,成年前,觉之凡事需冷静,大赞理性之光辉,然有座右铭“不以物喜不以己悲”,然则常无悲喜于表,乃深无情也,其失孩童之乐;年成丈夫才知乐之珍惜,求其甚切,非唯于己也,何者,人之乐乃信可乐也。
少不更事,成年前,觉之凡事需冷静,大赞理性之光辉,然有座右铭“不以物喜不以己悲”。
然则常无悲喜于表,乃深无情也,其失孩童之乐;
年成丈夫才知乐之珍惜,求其甚切,非唯于己也,何者,人之乐乃信可乐也。
然,可乐,说之曰,可了个乐。

### 对于你
Expand All @@ -50,10 +54,15 @@ next: false
5. 做一些有意义的教程
6. 写一些无意义的骚话

## 联系作者 🙉
## 联系我 🙉

Email:[email protected]

微信/WeChat:Kelegele

![Alt](/images/WeChat-QRCode.jpg "Kelegele 微信二维码" =x250)

在侧边栏/导航栏就有各种联系方式。
欢迎骚扰,陪聊,灌水。

好的,「关于」页面就是这么多。
以下的评论区可以随意留言,为避免恶意留言,需要输入邮箱哈,抱歉
以下的评论区可以随意留言,为避免恶意留言,需要登录 [GitHub](https://github.com/login) 账号
2 changes: 1 addition & 1 deletion src/en/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
home: true
layout: BlogHome
icon: home
title: Home
title: Home - Kelegele
heroImage: /logo.png
heroImageDark: /logo.png
heroAlt: 可了个乐 Kelegele Logo
Expand Down

0 comments on commit 88805fc

Please sign in to comment.