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

Automatic section numbering #601

Open
likhobory opened this issue Jan 20, 2023 · 0 comments
Open

Automatic section numbering #601

likhobory opened this issue Jan 20, 2023 · 0 comments

Comments

@likhobory
Copy link
Contributor

likhobory commented Jan 20, 2023

What is wrong, less clear, or missing

In some recently created docs sections are numbered manually.

Proposed fixes and/or additions

I propose to turn on automatic sections numbering, which will simplify the sections numbering for the new documents and will avoid some errors.
Instead of the default numbering setting (sectionNumbers = true) we can use the soft attribute setting by adding these lines to the Hugo config.toml file:

[markup]
   [markup.asciidocExt]
     #sectionNumbers = true
     [markup.asciidocExt.attributes]
        sectnums = "@"

In this case, if necessary, it will be possible to disable automatic numbering in certain files, for example, in _index... files.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant