Skip to content

Commit 872f23d

Browse files
committed
Merge branch 'feature/update-stella-1.33.1'
2 parents e226b77 + 2dfd7fa commit 872f23d

File tree

1,590 files changed

+12109
-1696
lines changed

Some content is hidden

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

1,590 files changed

+12109
-1696
lines changed

Makefile

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ list:
99
install:
1010
pnpm install
1111

12+
clean:
13+
pnpm run clean
14+
1215
build:
1316
pnpm run build
1417

15-
generate: build
16-
17-
clean:
18-
pnpm run clean
18+
generate: clean build
1919

2020
server:
2121
pnpm run server
2222

23-
s: server
23+
s: clean server
2424

2525
slug :=
2626
title :=
@@ -34,15 +34,13 @@ ifndef title
3434
endif
3535

3636
note: check-slug-and-title
37-
hexo new note -p "../notes/$(slug)" "$(title)"
38-
mv "source/notes/$(slug)" "source/notes/assets/$(slug)"
37+
hexo new note -p "../notes/$(slug)/index.md" "$(title)"
3938

4039
post: check-slug-and-title
4140
hexo new post -p "$(shell date '+%Y')/$(slug)" "$(title)"
4241

4342
coding: check-slug-and-title
44-
hexo new coding -p "../coding/$(slug)" "$(title)"
43+
hexo new coding -p "../coding/$(slug)/index.md" "$(title)"
4544
cp scaffolds/coding/* "source/coding/$(slug)/"
46-
mv "source/coding/$(slug)" "source/coding/assets/$(slug)"
4745

4846
.PHONY: list install build generate clean server s note post coding

_config.stellar.yml

Lines changed: 50 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,25 @@ inject:
4141
- <link rel="stylesheet" href="/css/gocalf.css?v=20251221">
4242
- <link rel="stylesheet" href="/css/callouts.css?v=20250517">
4343

44+
######## Main ########
45+
site_tree:
46+
post:
47+
leftbar: welcome, related, recent
48+
index_wiki:
49+
leftbar: welcome, related, recent
50+
wiki:
51+
leftbar: welcome, tree, related, recent
52+
notebooks:
53+
leftbar: welcome, recent
54+
notes:
55+
leftbar: welcome, tagtree, recent_long
56+
note:
57+
leftbar: welcome, tagtree, recent_long
58+
error_page:
59+
leftbar: welcome, recent, timeline
60+
page:
61+
leftbar: welcome, recent
62+
4463
######## Notebook ########
4564
notebook:
4665
tagcons:
@@ -91,34 +110,41 @@ footer:
91110
icon: default:theme
92111
onclick: 'switchTheme()'
93112
sitemap:
94-
'GoCalf':
95-
- '[主页](/)'
96-
- '[关于](/about/)'
97-
- '[PGP 信息](/pgp/)'
98-
- '[旧站](https://blog.gocalf.com/)'
99-
'内容':
100-
- '[笔记<span class="dot"></span>杂七杂八](/notes/)'
101-
- '[笔记<span class="dot"></span>Coding](/coding/)'
102-
- '[博客<span class="dot"></span>近期发布](/)'
103-
- '[博客<span class="dot"></span>归档](/blog/archives/)'
104-
- '[所有 Wiki 项目](/wiki/)'
105-
- '[所有笔记本](/notebooks/)'
106-
'联系我':
107-
- '[给我发邮件](mailto:calf.zhou@gmail.com)'
108-
- '[GitHub](https://github.com/calfzhou)'
109-
- '[Facebook](https://www.facebook.com/calfzhou)'
110-
- '[Telegram](https://t.me/calfzhou)'
111-
'特别感谢':
112-
- '[Hexo](https://hexo.io/)'
113-
- '[Hexo Stellar](https://xaoxuu.com/wiki/stellar/)'
114-
- '[霞鹜文楷](https://github.com/lxgw/LxgwWenKai)'
115-
- '[今日诗词](https://www.jinrishici.com/)'
113+
- title: GoCalf
114+
items:
115+
- '[主页](/)'
116+
- '[关于](/about/)'
117+
- '[PGP 信息](/pgp/)'
118+
- '[旧站](https://blog.gocalf.com/)'
119+
- title: 内容
120+
items:
121+
- '[笔记<span class="dot"></span>杂七杂八](/notes/)'
122+
- '[笔记<span class="dot"></span>Coding](/coding/)'
123+
- '[博客<span class="dot"></span>近期发布](/)'
124+
- '[博客<span class="dot"></span>归档](/blog/archives/)'
125+
- '[所有 Wiki 项目](/wiki/)'
126+
- '[所有笔记本](/notebooks/)'
127+
- title: 联系我
128+
items:
129+
- '[给我发邮件](mailto:calf.zhou@gmail.com)'
130+
- '[GitHub](https://github.com/calfzhou)'
131+
- '[Facebook](https://www.facebook.com/calfzhou)'
132+
- '[Telegram](https://t.me/calfzhou)'
133+
- title: 特别感谢
134+
items:
135+
- '[Hexo](https://hexo.io/)'
136+
- '[Hexo Stellar](https://xaoxuu.com/wiki/stellar/)'
137+
- '[霞鹜文楷](https://github.com/lxgw/LxgwWenKai)'
138+
- '[今日诗词](https://www.jinrishici.com/)'
116139
content: |
117140
本站所有文章除特别声明外,均采用 [CC BY-NC-SA 4.0](https://creativecommons.org/licenses/by-nc-sa/4.0/) 许可协议,转载请注明出处。
118141
本站由 [Hexo](https://hexo.io/)、[{theme.name} {theme.version}]({theme.tree}) 和 [GitHub Pages](https://pages.github.com/) 强力驱动。
119142
Copyright © 2011-2024 [gocalf.com](/) 保留所有权利。
120-
<span class="jinrishici-sentence"></span>
121-
<script src="https://sdk.jinrishici.com/v2/browser/jinrishici.js" charset="utf-8"></script>
143+
144+
data_services:
145+
contributors:
146+
edit_this_page: # 从开头开始匹配替换
147+
'': https://github.com/calfzhou/gocalf.com/blob/main/source/
122148

123149
plugins:
124150
katex:

_config.yml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ code_dir: downloads/code
4040
i18n_dir: :lang
4141
skip_render:
4242

43+
# TODO
44+
# 如果要把 posts 目录调整成 `slug/index.md` 形式,要修改:
45+
# new_post_name: :year/:title/index.md
46+
# Makefile 里 post 命令的 -p 参数相应调整
47+
# 问题是 assets 只能放到 `slug/index/` 目录下,否则无法被拷贝到 public 目录。
48+
4349
# Writing
4450
new_post_name: :year/:title.md # File name of new posts
4551
default_layout: post
@@ -75,6 +81,7 @@ markdown: # https://github.com/hexojs/hexo-renderer-markdown-it
7581
permalink: true
7682
permalinkClass: 'headerlink'
7783
permalinkSymbol: ''
84+
separator: ' '
7885
plugins:
7986
- name: '@traptitech/markdown-it-katex'
8087
options: # see https://katex.org/docs/options.html
@@ -116,14 +123,11 @@ pagination_dir: page
116123

117124
# Include / Exclude file(s)
118125
## include:/exclude: options only apply to the 'source/' folder
126+
# Hidden files and files/folders with a name that starts with an underscore, are ignored by default.
119127
include: []
120-
exclude: []
121-
ignore:
122-
- __pycache__/**
123-
- .pytest_cache/**
124-
- .obsidian/**
125-
- _templates/**
126-
- .trash/**
128+
exclude:
129+
- consistency-report.md
130+
ignore: []
127131

128132
# Extensions
129133
## Plugins: https://hexo.io/plugins/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"pnpm": "^9.0"
88
},
99
"scripts": {
10-
"postinstall": "cp ./patch/hexo/plugins/console/list/common.js ./node_modules/.pnpm/hexo@8.1.1_chokidar@3.6.0/node_modules/hexo/dist/plugins/console/list/common.js; cp ./patch/hexo-theme-stellar/scripts/filters/pretty_urls.js ./node_modules/hexo-theme-stellar/scripts/filters/pretty_urls.js; cp ./patch/hexo-theme-stellar/scripts/helpers/pretty_url.js ./node_modules/hexo-theme-stellar/scripts/helpers/pretty_url.js",
10+
"postinstall": "cp ./patch/hexo/plugins/console/list/common.js ./node_modules/.pnpm/hexo@8.1.1_chokidar@3.6.0/node_modules/hexo/dist/plugins/console/list/common.js",
1111
"build": "hexo generate",
1212
"clean": "hexo clean",
1313
"deploy": "hexo deploy",
@@ -40,7 +40,7 @@
4040
"hexo-renderer-markdown-it": "^7.1.1",
4141
"hexo-renderer-stylus": "^3.0.1",
4242
"hexo-server": "^3.0.0",
43-
"hexo-theme-stellar": "1.30.0",
43+
"hexo-theme-stellar": "1.33.1",
4444
"markdown-it-obsidian-callouts": "^0.3.3",
4545
"markdown-it-obsidian-imgsize": "^0.1.1",
4646
"postcss": "^8.5.6",

patch/hexo-theme-stellar/scripts/filters/pretty_urls.js

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

patch/hexo-theme-stellar/scripts/helpers/pretty_url.js

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

0 commit comments

Comments
 (0)