Skip to content

Commit b72d326

Browse files
refactor: inline chirpy theme, remove all submodules
- Remove _themes/chirpy submodule and assets/lib submodule - Copy theme files directly into root (_includes, _layouts, _sass, _javascript, assets) - Merge _data (locales, media, origin) into root _data - Replace gem theme with direct Jekyll plugin dependencies in Gemfile - Remove .gitmodules, .devcontainer - Update _config.yml: remove theme directive, add explicit plugins list - Update CI workflow: remove submodules checkout
1 parent 54b19f9 commit b72d326

114 files changed

Lines changed: 7774 additions & 11 deletions

File tree

Some content is hidden

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

.github/workflows/pages-deploy.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ jobs:
3131
uses: actions/checkout@v4
3232
with:
3333
fetch-depth: 0
34-
submodules: recursive
3534

3635
- name: Setup Pages
3736
id: pages

.gitmodules

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

Gemfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22

33
source "https://rubygems.org"
44

5-
gem "jekyll-theme-chirpy", path: "_themes/chirpy"
5+
gem "jekyll", "~> 4.3"
6+
gem "jekyll-paginate", "~> 1.1"
7+
gem "jekyll-seo-tag", "~> 2.8"
8+
gem "jekyll-archives", "~> 2.2"
9+
gem "jekyll-sitemap", "~> 1.4"
10+
gem "jekyll-include-cache", "~> 0.2"
611

712
gem "html-proofer", "~> 5.0", group: :test
813

_config.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Site Configuration
22

3-
theme: jekyll-theme-chirpy
3+
plugins:
4+
- jekyll-paginate
5+
- jekyll-seo-tag
6+
- jekyll-archives
7+
- jekyll-sitemap
8+
- jekyll-include-cache
49

510
lang: zh-CN
611
timezone: Asia/Shanghai
@@ -121,13 +126,11 @@ r2_gallery:
121126
exclude:
122127
- "*.gem"
123128
- "*.gemspec"
124-
- docs
125129
- tools
126-
- _themes
130+
- scripts
127131
- README.md
128132
- LICENSE
129-
- "*.config.js"
130-
- package*.json
133+
- _javascript
131134

132135
jekyll-archives:
133136
enabled: [categories, tags]

_data/locales/en.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
# The layout text of site
2+
3+
# ----- Commons label -----
4+
5+
layout:
6+
post: Post
7+
category: Category
8+
tag: Tag
9+
10+
# The tabs of sidebar
11+
tabs:
12+
# format: <filename_without_extension>: <value>
13+
home: Home
14+
categories: Categories
15+
tags: Tags
16+
archives: Archives
17+
about: About
18+
19+
# the text displayed in the search bar & search results
20+
search:
21+
hint: search
22+
cancel: Cancel
23+
no_results: Oops! No results found.
24+
25+
panel:
26+
lastmod: Recently Updated
27+
trending_tags: Trending Tags
28+
toc: Contents
29+
30+
copyright:
31+
# Shown at the bottom of the post
32+
license:
33+
template: This post is licensed under :LICENSE_NAME by the author.
34+
name: CC BY 4.0
35+
link: https://creativecommons.org/licenses/by/4.0/
36+
37+
# Displayed in the footer
38+
brief: Some rights reserved.
39+
verbose: >-
40+
Except where otherwise noted, the blog posts on this site are licensed
41+
under the Creative Commons Attribution 4.0 International (CC BY 4.0) License by the author.
42+
43+
meta: Using the :THEME theme for :PLATFORM.
44+
45+
not_found:
46+
statement: Sorry, we've misplaced that URL or it's pointing to something that doesn't exist.
47+
48+
notification:
49+
update_found: A new version of content is available.
50+
update: Update
51+
52+
# ----- Posts related labels -----
53+
54+
post:
55+
written_by: By
56+
posted: Posted
57+
updated: Updated
58+
words: words
59+
pageview_measure: views
60+
read_time:
61+
unit: min
62+
prompt: read
63+
relate_posts: Further Reading
64+
share: Share
65+
button:
66+
next: Newer
67+
previous: Older
68+
copy_code:
69+
succeed: Copied!
70+
share_link:
71+
title: Copy link
72+
succeed: Link copied successfully!
73+
74+
# Date time format.
75+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
76+
df:
77+
post:
78+
strftime: "%b %e, %Y"
79+
dayjs: "ll"
80+
archives:
81+
strftime: "%b"
82+
dayjs: "MMM"
83+
84+
# categories page
85+
categories:
86+
category_measure:
87+
singular: category
88+
plural: categories
89+
post_measure:
90+
singular: post
91+
plural: posts

_data/locales/zh-CN.yml

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
# The layout text of site
2+
3+
# ----- Commons label -----
4+
5+
layout:
6+
post: 文章
7+
category: 分类
8+
tag: 标签
9+
10+
# The tabs of sidebar
11+
tabs:
12+
# format: <filename_without_extension>: <value>
13+
home: 首页
14+
categories: 分类
15+
tags: 标签
16+
archives: 归档
17+
about: 关于
18+
19+
# the text displayed in the search bar & search results
20+
search:
21+
hint: 搜索
22+
cancel: 取消
23+
no_results: 搜索结果为空
24+
25+
panel:
26+
lastmod: 最近更新
27+
trending_tags: 热门标签
28+
toc: 文章内容
29+
30+
copyright:
31+
# Shown at the bottom of the post
32+
license:
33+
template: 本文由作者按照 :LICENSE_NAME 进行授权
34+
name: CC BY 4.0
35+
link: https://creativecommons.org/licenses/by/4.0/
36+
37+
# Displayed in the footer
38+
brief: 保留部分权利。
39+
verbose: >-
40+
除非另有说明,本网站上的博客文章均由作者按照知识共享署名 4.0 国际 (CC BY 4.0) 许可协议进行授权。
41+
42+
meta: 本站采用 :PLATFORM 主题 :THEME
43+
44+
not_found:
45+
statement: 抱歉,我们放错了该 URL,或者它指向了不存在的内容。
46+
47+
notification:
48+
update_found: 发现新版本的内容。
49+
update: 更新
50+
51+
# ----- Posts related labels -----
52+
53+
post:
54+
written_by: 作者
55+
posted: 发表于
56+
updated: 更新于
57+
words:
58+
pageview_measure: 次浏览
59+
read_time:
60+
unit: 分钟
61+
prompt: 阅读
62+
relate_posts: 相关文章
63+
share: 分享
64+
button:
65+
next: 下一篇
66+
previous: 上一篇
67+
copy_code:
68+
succeed: 已复制!
69+
share_link:
70+
title: 分享链接
71+
succeed: 链接已复制!
72+
73+
# Date time format.
74+
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
75+
df:
76+
post:
77+
strftime: "%Y/%m/%d"
78+
dayjs: "YYYY/MM/DD"
79+
80+
# categories page
81+
categories:
82+
category_measure: 个分类
83+
post_measure: 篇文章

_data/media.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
- extension: mp3
2+
mime_type: mpeg
3+
- extension: mov
4+
mime_type: quicktime
5+
- extension: avi
6+
mime_type: x-msvideo
7+
- extension: mkv
8+
mime_type: x-matroska
9+
- extension: ogv
10+
mime_type: ogg
11+
- extension: weba
12+
mime_type: webm
13+
- extension: 3gp
14+
mime_type: 3gpp
15+
- extension: 3g2
16+
mime_type: 3gpp2
17+
- extension: mid
18+
mime_type: midi

_data/origin/basic.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# fonts
2+
3+
webfonts: /assets/lib/fonts/main.css
4+
5+
# Libraries
6+
7+
toc:
8+
css: /assets/lib/tocbot/tocbot.min.css
9+
js: /assets/lib/tocbot/tocbot.min.js
10+
11+
fontawesome:
12+
css: /assets/lib/fontawesome-free/css/all.min.css
13+
14+
search:
15+
js: /assets/lib/simple-jekyll-search/simple-jekyll-search.min.js
16+
17+
mermaid:
18+
js: /assets/lib/mermaid/mermaid.min.js
19+
20+
dayjs:
21+
js:
22+
common: /assets/lib/dayjs/dayjs.min.js
23+
locale: /assets/lib/dayjs/locale/en.js
24+
relativeTime: /assets/lib/dayjs/plugin/relativeTime.js
25+
localizedFormat: /assets/lib/dayjs/plugin/localizedFormat.js
26+
27+
glightbox:
28+
css: /assets/lib/glightbox/glightbox.min.css
29+
js: /assets/lib/glightbox/glightbox.min.js
30+
31+
lazy-polyfill:
32+
css: /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.min.css
33+
js: /assets/lib/loading-attribute-polyfill/loading-attribute-polyfill.umd.min.js
34+
35+
clipboard:
36+
js: /assets/lib/clipboard/clipboard.min.js
37+
38+
mathjax:
39+
js: /assets/lib/mathjax/tex-chtml.js

_data/origin/cors.yml

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# Resource Hints
2+
resource_hints:
3+
- url: https://fonts.googleapis.com
4+
links:
5+
- rel: preconnect
6+
- rel: dns-prefetch
7+
- url: https://fonts.gstatic.com
8+
links:
9+
- rel: preconnect
10+
opts: [crossorigin]
11+
- rel: dns-prefetch
12+
- url: https://cdn.jsdelivr.net
13+
links:
14+
- rel: preconnect
15+
- rel: dns-prefetch
16+
17+
# Web Fonts
18+
webfonts: https://fonts.googleapis.com/css2?family=Lato:wght@300;400&family=Source+Sans+Pro:wght@400;600;700;900&display=swap
19+
20+
# Libraries
21+
22+
toc:
23+
css: https://cdn.jsdelivr.net/npm/tocbot@4.36.4/dist/tocbot.min.css
24+
js: https://cdn.jsdelivr.net/npm/tocbot@4.36.4/dist/tocbot.min.js
25+
26+
fontawesome:
27+
css: https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@7.1.0/css/all.min.css
28+
29+
search:
30+
js: https://cdn.jsdelivr.net/npm/simple-jekyll-search@1.10.0/dest/simple-jekyll-search.min.js
31+
32+
mermaid:
33+
js: https://cdn.jsdelivr.net/npm/mermaid@11.12.0/dist/mermaid.min.js
34+
35+
dayjs:
36+
js:
37+
common: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/dayjs.min.js
38+
locale: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/locale/:LOCALE.js
39+
relativeTime: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/plugin/relativeTime.js
40+
localizedFormat: https://cdn.jsdelivr.net/npm/dayjs@1.11.18/plugin/localizedFormat.js
41+
42+
glightbox:
43+
css: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/css/glightbox.min.css
44+
js: https://cdn.jsdelivr.net/npm/glightbox@3.3.0/dist/js/glightbox.min.js
45+
46+
lazy-polyfill:
47+
css: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.min.css
48+
js: https://cdn.jsdelivr.net/npm/loading-attribute-polyfill@2.1.1/dist/loading-attribute-polyfill.umd.min.js
49+
50+
clipboard:
51+
js: https://cdn.jsdelivr.net/npm/clipboard@2.0.11/dist/clipboard.min.js
52+
53+
mathjax:
54+
js: https://cdn.jsdelivr.net/npm/mathjax@3.2.2/es5/tex-chtml.js

_includes/comment.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<!-- The comments switcher -->
2+
{% if page.comments and site.comments.provider %}
3+
{% capture path %}comments/{{ site.comments.provider }}.html{% endcapture %}
4+
{% include {{ path }} %}
5+
{% endif %}

0 commit comments

Comments
 (0)