File tree Expand file tree Collapse file tree 13 files changed +268
-16
lines changed Expand file tree Collapse file tree 13 files changed +268
-16
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ title : 我们的团队
3
+ description : 我们是一个充满激情的开发者社区,致力于创造优秀的开源项目。
4
+ template : team
5
+
6
+ members :
7
+ - name : devlive-community
8
+ type : owner
9
+ url : https://github.com/devlive-community
10
+ avatar : https://github.com/devlive-community.png
11
+ - name : qianmoq
12
+ type : contributor
13
+ url : https://github.com/qianmoq
14
+ avatar : https://github.com/qianmoq.png
15
+ ---
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : 主页模板
3
+ icon : home
4
+ ---
5
+
6
+ !!! danger "注意"
7
+
8
+ 主页模版仅支持配置元数据,切勿填写内容。
9
+
10
+ !!!
11
+
12
+ ## 基本配置
13
+
14
+ ---
15
+
16
+ ``` markdown
17
+ ---
18
+ title: 主页模板(默认)
19
+ icon: home
20
+ template: home
21
+
22
+ config:
23
+ toc: false
24
+
25
+ hero:
26
+ title: 创新技术解决方案
27
+ description: 为您的企业或网站提供最前沿的技术支持和解决方案
28
+ primaryCta:
29
+ url: /<%= pageData.language %>/getting-started/get-started.html
30
+ text: 开始使用
31
+ secondaryCta:
32
+ url: /<%= pageData.language %>/usage/href.html
33
+ text: 了解更多
34
+
35
+ features:
36
+ subtitle: 核心优势
37
+ title: 为什么选择我们
38
+ description: 提供全方位的技术支持和服务
39
+ items:
40
+ - icon: >-
41
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-6 h-6 text-indigo-600">
42
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" />
43
+ </svg>
44
+ title: 高性能
45
+ description: 采用最新技术架构,确保系统高效运行
46
+
47
+ - icon: >-
48
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-6 h-6 text-indigo-600">
49
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
50
+ </svg>
51
+ title: 安全可靠
52
+ description: 全方位的安全防护,保障数据安全
53
+
54
+ - icon: >-
55
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="w-6 h-6 text-indigo-600">
56
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2" />
57
+ </svg>
58
+ title: 易于使用
59
+ description: 直观的界面设计,简单易上手
60
+
61
+ stats:
62
+ title: 用数据说话
63
+ description: 我们取得的成就
64
+ items:
65
+ - label: GitHub Stars
66
+ value: 10+
67
+ - label: 服务客户
68
+ value: 2+
69
+ - label: 正常运行时间
70
+ value: 99.99%
71
+ - label: 客户满意度
72
+ value: 98%
73
+
74
+ cta:
75
+ title: 准备好开始了吗?
76
+ description: 立即加入我们,开启您的技术创新之旅
77
+ button:
78
+ url: /<%= pageData.language %>/getting-started/get-started.html
79
+ text: 立即注册
80
+ ---
81
+ ```
82
+
83
+ - ` template ` : 指定模板名称,可选值为 ` home ` ,` home/modern ` ,` home/enterprise ` ,` home/modern ` ,` home/minimal ` ,` home/playful `
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
1
+ ---
2
+ title : 团队模板
3
+ icon : users
4
+ ---
5
+
6
+ !!! danger "注意"
7
+
8
+ 团队模版仅支持配置元数据,切勿填写内容。
9
+
10
+ !!!
11
+
12
+ ## 基本配置
13
+
14
+ ---
15
+
16
+ ``` markdown
17
+ ---
18
+ title: 我们的团队
19
+ description: 我们是一个充满激情的开发者社区,致力于创造优秀的开源项目。
20
+ template: team
21
+
22
+ members:
23
+ - name: devlive-community
24
+ type: owner
25
+ url: https://github.com/devlive-community
26
+ avatar: https://github.com/devlive-community.png
27
+ - name: qianmoq
28
+ type: contributor
29
+ url: https://github.com/qianmoq
30
+ avatar: https://github.com/qianmoq.png
31
+ ---
32
+ ```
33
+
34
+ - ` title ` : 页面标题
35
+ - ` description ` : 页面描述
36
+ - ` template ` : 模板名称,这里必须是 ` team `
37
+ - ` members ` : 团队成员列表
38
+ - ` name ` : 成员名称
39
+ - ` type ` : 成员类型
40
+ - ` url ` : 成员链接
41
+ - ` avatar ` : 成员头像
Original file line number Diff line number Diff line change @@ -98,11 +98,13 @@ i18n:
98
98
translations :
99
99
GetStarted : Getting Started
100
100
Setup : Setup
101
- InlineTemplate : Inline Template
102
101
Usage : Usage Docs
103
102
EjsTemplate : EJS Template
104
103
CodeBlock : Code Block
105
104
ReleaseNotes : Release Notes
105
+ Team : Team
106
+ Template : Template
107
+ TemplatePreview : Template Preview
106
108
zh-CN :
107
109
name : 中文
108
110
flag : 🇨🇳
@@ -114,6 +116,9 @@ i18n:
114
116
EjsTemplate : EJS 模板
115
117
CodeBlock : 代码块
116
118
ReleaseNotes : 发布日志
119
+ Team : 团队
120
+ Template : 模版
121
+ TemplatePreview : 模版预览
117
122
118
123
footer :
119
124
copyright : © 2024 PageForge All Rights Reserved.
@@ -169,12 +174,6 @@ nav:
169
174
- /setup/font-size
170
175
- /setup/comment
171
176
- /setup/seo
172
- - InlineTemplate :
173
- - /setup/template/home
174
- - /setup/template/enterprise
175
- - /setup/template/minimal
176
- - /setup/template/modern
177
- - /setup/template/playful
178
177
- Usage :
179
178
- /usage/href
180
179
- /usage/image
@@ -193,4 +192,15 @@ nav:
193
192
- /release/2025.1.2
194
193
- /release/2025.1.1
195
194
- /release/2025.1.0
196
- - /release/1.0.0
195
+ - /release/1.0.0
196
+ - Template :
197
+ - /template/home
198
+ - /template/team
199
+ - TemplatePreview :
200
+ - /template/preview/home
201
+ - /template/preview/enterprise
202
+ - /template/preview/minimal
203
+ - /template/preview/modern
204
+ - /template/preview/playful
205
+ - Team :
206
+ - /team
Original file line number Diff line number Diff line change 10
10
</div >
11
11
12
12
<script >
13
- // 点击外部区域关闭移动端菜单
14
- document .addEventListener (' click' , function (event ) {
13
+ document .addEventListener (' DOMContentLoaded' , function () {
15
14
const mobileMenu = document .getElementById (' mobile-menu' );
16
15
const menuButton = document .querySelector (' button[onclick*="mobile-menu"]' );
17
16
18
- if (! mobileMenu .contains (event .target ) && ! menuButton .contains (event .target ) && ! mobileMenu .classList .contains (' hidden' )) {
19
- mobileMenu .classList .add (' hidden' );
20
- menuButton .querySelector (' svg:first-child' ).classList .remove (' hidden' );
21
- menuButton .querySelector (' svg:last-child' ).classList .add (' hidden' );
17
+ // 只有当菜单元素存在时才添加事件监听
18
+ if (mobileMenu && menuButton) {
19
+ document .addEventListener (' click' , function (event ) {
20
+ if (! mobileMenu .contains (event .target ) &&
21
+ ! menuButton .contains (event .target ) &&
22
+ ! mobileMenu .classList .contains (' hidden' )) {
23
+
24
+ mobileMenu .classList .add (' hidden' );
25
+
26
+ const openIcon = menuButton .querySelector (' svg:first-child' );
27
+ const closeIcon = menuButton .querySelector (' svg:last-child' );
28
+
29
+ if (openIcon && closeIcon) {
30
+ openIcon .classList .remove (' hidden' );
31
+ closeIcon .classList .add (' hidden' );
32
+ }
33
+ }
34
+ });
22
35
}
23
36
});
24
37
</script >
You can’t perform that action at this time.
0 commit comments