Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Catalog number cannot be configured | 目录编号无法配置 #505

Closed
Tim-Saijun opened this issue Sep 23, 2024 · 1 comment · Fixed by #508
Closed

[BUG] Catalog number cannot be configured | 目录编号无法配置 #505

Tim-Saijun opened this issue Sep 23, 2024 · 1 comment · Fixed by #508
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Tim-Saijun
Copy link
Member

Describe the bug 描述你遇到的错误

主题有如下配置:

[params.page.heading]
      # FixIt 0.3.6 | 新增 是否自动大写标题
      capitalize = false
      # 配合 `markup.tableOfContents.ordered` 参数使用
      [params.page.heading.number]
        # 是否启用自动标题编号
        enable = true

但对于特定的某一篇文章,我想禁用自动编号,在frontmatter里面配置:

heading:
  number:
    enable: false

这样做对目录并不生效

Expected behavior 期待的行为

No response

Screenshots 屏幕截图

image

Build Environment 构建环境

No response

Preview Environment 预览环境

No response

Additional Information 补充信息

No response

@Lruihao
Copy link
Member

Lruihao commented Sep 27, 2024

Params change

[params]
  # Table of the contents config
  [params.page.toc]
    # ...
    # FixIt 0.3.12 | NEW supersede `markup.tableOfContents` settings
    ordered = false
    startLevel = 2
    endLevel = 6
  [params.page.heading]
  # FixIt 0.3.3 | NEW whether to capitalize automatic text of headings
    capitalize = false
    # FixIt 0.3.12 | CHANGED must set `params.page.toc.ordered` to true
    [params.page.heading.number]
      # ...

Front matter change

# Don't show number in TOC and headings
toc:
  ordered: false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants