Skip to content

Commit

Permalink
Fix: 修复目录编号无法配置的问题 (hugo-fixit/FixIt#505)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lruihao committed Sep 27, 2024
1 parent c779bbd commit 8862b31
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
6 changes: 5 additions & 1 deletion config/_default/params.toml
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,10 @@ disableThemeInject = false
auto = true
# FixIt 0.2.13 | NEW position of TOC ("left", "right")
position = "right"
# FixIt 0.3.12 | NEW supersede `markup.tableOfContents` settings
ordered = true
startLevel = 2
endLevel = 6
# FixIt 0.2.13 | NEW Display a message at the beginning of an article to warn the reader that its content might be expired
[page.expirationReminder]
enable = true
Expand All @@ -335,7 +339,7 @@ disableThemeInject = false
closeComment = true
# FixIt 0.3.0 | NEW page heading config
[page.heading]
# used with `markup.tableOfContents.ordered` parameter
# FixIt 0.3.12 | CHANGED must set `params.page.toc.ordered` to true
[page.heading.number]
# whether to enable auto heading numbering
enable = true
Expand Down
5 changes: 2 additions & 3 deletions content/projects/font-mmt/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,8 @@ library:
js:
vueJS: https://npm.elemecdn.com/[email protected]/dist/vue.min.js
pageStyle: wide
heading:
number:
enable: false
toc:
ordered: false
---

<!-- markdownlint-disable MD033 -->
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 // indirect
github.com/hugo-fixit/FixIt v0.3.12-0.20240925102835-954d86432f3e // indirect
github.com/hugo-fixit/FixIt v0.3.12-0.20240927091017-456db3851b37 // indirect
github.com/hugo-fixit/cmpt-mdevtools v1.0.1 // indirect
github.com/hugo-fixit/component-projects v1.1.3 // indirect
github.com/hugo-fixit/hugo-json-feed v1.0.2 // indirect
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7 h1:G0A3HBcU7zu/FZPEVlzexO4GBNs1CAUVNwoRkekUbdU=
github.com/Lruihao/hugo-shortcode-mmt-netease v1.0.7/go.mod h1:6vXHaAZv1p9meW2mZ5KmlWlu5W9YiIpUTkHGWwkp3Pk=
github.com/hugo-fixit/FixIt v0.3.12-0.20240925102835-954d86432f3e h1:7a6PDPQVPr/Ch3MB6M6J4Bqa4RDB8YhcLuCIp9hUsn4=
github.com/hugo-fixit/FixIt v0.3.12-0.20240925102835-954d86432f3e/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/FixIt v0.3.12-0.20240927091017-456db3851b37 h1:rSCRSgUN98Lv4aP9cG8SeJlwgWp5j/lPPHM3W+65gRs=
github.com/hugo-fixit/FixIt v0.3.12-0.20240927091017-456db3851b37/go.mod h1:3XIRedrqakO7/a4ZnhE46haMRF8HgsT0N0B5j5D2iRU=
github.com/hugo-fixit/cmpt-mdevtools v1.0.1 h1:IdUhqO1ktKsJF5D0ReU37PU2CQCpgjY4EFFQ0S69sKQ=
github.com/hugo-fixit/cmpt-mdevtools v1.0.1/go.mod h1:+1tfeT4ugFNa1kx/3yQF0NUup2Fejiq7EwvrpcY2xWw=
github.com/hugo-fixit/component-projects v1.1.3 h1:iK6q07CpFsnnJGh8q2stVjv6Lr77dTM9o+P7LGDEYmE=
Expand Down

0 comments on commit 8862b31

Please sign in to comment.