Skip to content

Commit a2e95ca

Browse files
committed
添加评论功能
1 parent cb8e982 commit a2e95ca

File tree

10 files changed

+901
-712
lines changed

10 files changed

+901
-712
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
public
2+
public
3+
.env

.gitmodules

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
[submodule "themes/github-style"]
22
path = themes/github-style
3-
url = [email protected]:LinuxHub-Group/github-style.git
4-
[submodule "themes/PaperMod"]
5-
path = themes/PaperMod
6-
url = https://github.com/adityatelange/hugo-PaperMod.git
3+
url = [email protected]:LinuxHub-Group/github-style.git

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# linuxhub-group.github.io
2+
3+
linuxhub 官方网站,[linuxhub-group.github.io](linuxhub-group.github.io)
4+
5+
甚至有极为先进的web3版本 [linuxhub.eth](linuxhub.eth)
6+
7+
## 使用
8+
9+
```shell
10+
hugo new post/test.md
11+
```

config.toml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,19 +26,14 @@ pygmentsUseClasses = true
2626
favicon = "images/github.png"
2727
location = "Japan"
2828
enableGitalk = false
29+
enableGiscus = true
2930

30-
# [params.gitalk]
31-
# clientID = "Your client ID"
32-
# clientSecret = "Your client secret"
33-
# repo = "repo"
34-
# owner = "MeiK2333"
35-
# admin = "MeiK2333"
36-
# id = "location.pathname"
37-
# labels = "gitalk"
38-
# perPage = 15
39-
# pagerDirection = "last"
40-
# createIssueManually = true
41-
# distractionFreeMode = false
31+
[params.giscus]
32+
repo = "LinuxHub-Group/linuxhub-group.github.io"
33+
repo_id = "R_kgDOIItJPA"
34+
category = "Show and tell"
35+
category_id = "DIC_kwDOIItJPM4CR1Sn"
36+
lang = "en"
4237

4338
# [[params.links]]
4439
# title = "Link2"

ens-iframe.html

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<!DOCTYPE html>
2+
3+
<html>
4+
5+
<head>
6+
7+
<meta charset="utf-8">
8+
9+
<title>LinuxHub</title>
10+
11+
<style>
12+
13+
body{
14+
15+
margin:0;
16+
17+
padding:0;
18+
19+
overflow-y:hidden
20+
21+
}
22+
23+
</style>
24+
25+
</head>
26+
27+
<body>
28+
29+
<iframe id="iframe" src="https://linuxhub-group.github.io/" style="width:100%;position: absolute; height: 100%; border: none"></iframe>
30+
31+
</body>
32+
33+
</html>

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@
33
"version": "1.0.0",
44
"main": "index.js",
55
"author": "catusax <[email protected]>",
6+
"type": "module",
67
"scripts": {
78
"upload": "ipfs-deploy -p pinata ./public",
8-
"upload-ens": "ipfs-deploy -p pinata ens.html"
9+
"upload-ens": "ipfs-deploy -p pinata ens.html",
10+
"start": "web-dev-server",
11+
"test": "ipfs add -r public"
912
},
1013
"license": "MIT",
1114
"dependencies": {},
1215
"devDependencies": {
16+
"@web/dev-server": "^0.1.34",
1317
"ipfs-deploy": "^12.0.1"
1418
}
1519
}

themes/PaperMod

Lines changed: 0 additions & 1 deletion
This file was deleted.

web-dev-server.config.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
export default {
2+
3+
open: true,
4+
5+
watch: true,
6+
7+
nodeResolve: {
8+
9+
exportConditions: ['development'],
10+
11+
dedupe: true,
12+
13+
},
14+
15+
};

0 commit comments

Comments
 (0)