From 8862b315c1023cc31f93809ae77d5109b8d032aa Mon Sep 17 00:00:00 2001 From: Cell <1024@lruihao.cn> Date: Fri, 27 Sep 2024 17:18:36 +0800 Subject: [PATCH] =?UTF-8?q?Fix:=20=E4=BF=AE=E5=A4=8D=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E7=BC=96=E5=8F=B7=E6=97=A0=E6=B3=95=E9=85=8D=E7=BD=AE=E7=9A=84?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20(hugo-fixit/FixIt#505)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/_default/params.toml | 6 +++++- content/projects/font-mmt/index.md | 5 ++--- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/config/_default/params.toml b/config/_default/params.toml index a792003..d210101 100644 --- a/config/_default/params.toml +++ b/config/_default/params.toml @@ -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 @@ -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 diff --git a/content/projects/font-mmt/index.md b/content/projects/font-mmt/index.md index c2a4398..900e054 100644 --- a/content/projects/font-mmt/index.md +++ b/content/projects/font-mmt/index.md @@ -13,9 +13,8 @@ library: js: vueJS: https://npm.elemecdn.com/vue@2.6.14/dist/vue.min.js pageStyle: wide -heading: - number: - enable: false +toc: + ordered: false --- diff --git a/go.mod b/go.mod index 8ea2014..733da5e 100644 --- a/go.mod +++ b/go.mod @@ -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 diff --git a/go.sum b/go.sum index fa9a25d..ff2501d 100644 --- a/go.sum +++ b/go.sum @@ -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=