Skip to content

Commit

Permalink
Feat: 移除 custom.html,使用主题内置的 custom.html,并通过配置文件加载模板
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Sep 25, 2024
1 parent ccc0cc5 commit ca04033
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 36 deletions.
18 changes: 14 additions & 4 deletions config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -670,13 +670,23 @@ disableThemeInject = false
# 定义的自定义部分要包含在 /layouts/partials/ 目录中。
# 依赖于开放的自定义块 https://fixit.lruihao.cn/references/blocks/
[customPartials]
head = []
profile = []
aside = []
head = [
"inject/component-projects.html",
"inject/shortcode-rewards.html",
]
profile = [
"custom/profile.html",
]
aside = [
"custom/aside.html",
]
comment = []
footer = []
widgets = []
assets = []
assets = [
"custom/use-assets.html",
"inject/shortcode-caniuse.html",
]
postFooterBefore = []
postFooterAfter = []

Expand Down
32 changes: 0 additions & 32 deletions layouts/partials/custom.html

This file was deleted.

0 comments on commit ca04033

Please sign in to comment.