Skip to content

Commit 365790e

Browse files
committed
尝试使用 Bootstrap 替代 Minimal Mistakes 主题
1 parent 7b2b3ff commit 365790e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2999
-566
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ _site
22
.sass-cache
33
.jekyll-cache
44
.jekyll-metadata
5-
vendor
5+
/vendor/
66
Gemfile.lock
77
.bundle
8-
/.idea/
8+
/.idea/

.vscode/extensions.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"recommendations": [
3+
"hossaini.bootstrap-intellisense"
4+
]
5+
}

.vscode/settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"bootstrapIntelliSense": {
3+
"enable": true,
4+
"bsVersion": "5.3.5",
5+
"showSuggestions": true,
6+
"autoComplete": true
7+
}
8+
}

404.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
layout: splash
2+
title: 404 页面不存在
3+
layout: default
34
---
45

56
<div class="notice--danger">

Gemfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,11 @@ source "https://rubygems.org"
88
# This will help ensure the proper Jekyll version is running.
99
# Happy Jekylling!
1010
gem "jekyll", "4.4.1"
11-
gem "minimal-mistakes-jekyll", "4.27.3"
1211

1312
group :jekyll_plugins do
1413
gem "jekyll-paginate", "1.1.0"
1514
gem "jekyll-sitemap", "1.4.0"
16-
gem "jekyll-gist", "1.5.0"
1715
gem "jekyll-feed", "0.17.0"
18-
gem "jekyll-include-cache", "0.2.1"
1916
gem "jekyll-redirect-from", "0.16.0"
2017
end
2118

@@ -33,4 +30,4 @@ gem "http_parser.rb", "0.8.0", :platforms => [:jruby]
3330

3431
# plugin dependencies
3532
gem "nokogiri", "1.18.10"
36-
gem "addressable", "2.8.7"
33+
gem "bootstrap", "5.3.5"

_config.yml

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,13 @@ strict_front_matter: true
6363
plugins:
6464
- jekyll-paginate
6565
- jekyll-sitemap
66-
- jekyll-gist
6766
- jekyll-feed
68-
- jekyll-include-cache
6967
- jekyll-redirect-from
7068
# minimal-mistakes (mimic GitHub Pages with --safe)
7169
whitelist:
7270
- jekyll-paginate
7371
- jekyll-sitemap
74-
- jekyll-gist
7572
- jekyll-feed
76-
- jekyll-include-cache
7773
- jekyll-redirect-from
7874

7975
# Conversion
@@ -148,9 +144,6 @@ defaults:
148144
# # minimal-mistakes
149145
# enable_coderay: false
150146

151-
# Theme Settings
152-
theme: minimal-mistakes-jekyll
153-
154147
# Site Settings
155148
locale: zh
156149
# rtl:
@@ -267,12 +260,14 @@ analytics:
267260
footer:
268261
links:
269262
- label: Github
270-
icon: fab fa-fw fa-github
271-
url: https://github.com/HMCL-dev/HMCL
272-
- label: 粤ICP备18071565号
273-
url: https://beian.miit.gov.cn
263+
icon: bi bi-github
264+
url: https://github.com/HMCL-dev/hmcl
274265
# since:
275266

267+
icp:
268+
name: 粤ICP备18071565号
269+
url: https://beian.miit.gov.cn
270+
276271
# minimal-mistakes (with jekyll-paginate-v2) https://github.com/sverrirs/jekyll-paginate-v2/blob/master/README-GENERATOR.md#site-configuration
277272
# pagination:
278273
# enabled: false
@@ -320,8 +315,6 @@ compress_html:
320315
head_scripts:
321316
- /assets/js/settings.js
322317
- /assets/js/theme.js
323-
after_footer_scripts:
324-
- /assets/js/plugins/jquery.auto-redirect.js
325318

326319
# jekyll-feed
327320
feed:

_data/plugins/auto_alert.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
note:
22
title: 注意
3-
class_name: notice--info
3+
class_name: alert alert-info
44
tip:
55
title: 提示
6-
class_name: notice--success
6+
class_name: alert alert-success
77
important:
88
title: 重要
9-
class_name: notice--primary
9+
class_name: alert alert-primary
1010
warning:
1111
title: 警告
12-
class_name: notice--warning
12+
class_name: alert alert-warning
1313
caution:
1414
title: 谨慎
15-
class_name: notice--danger
15+
class_name: alert alert-danger

_data/settings.yaml

Lines changed: 2 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,7 @@
11
appearance_color:
22
type: radio
3-
default: light
3+
default: auto
44
options:
5-
- light
6-
- dark
75
- auto
8-
appearance_skin_light:
9-
type: radio
10-
default: default
11-
options:
12-
- default
13-
- air
14-
- aqua
15-
- contrast
16-
- dark
17-
- dirt
18-
- neon
19-
- mint
20-
- plum
21-
- sunrise
22-
appearance_skin_dark:
23-
type: radio
24-
default: dark
25-
options:
26-
- default
27-
- air
28-
- aqua
29-
- contrast
6+
- light
307
- dark
31-
- dirt
32-
- neon
33-
- mint
34-
- plum
35-
- sunrise

_docs/contribution.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
title: 贡献指南
33
date: 2021-10-09 23:18:02 +0800
44
author: huanghongxun
5-
classes: wide
65
toc: false
76
---
87

_includes/head.html

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)