Skip to content

Commit

Permalink
feat: add the hb_field_toc config for the toc field (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Feb 12, 2024
1 parent 5b29c2b commit 3517dac
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,12 @@ label = "Pinned"
i18n = true
required = false
hint = "Whether to pin the post on homepage and list."

[params.decap_cms._configs.hb_field_toc.fields.toc]
default = true
widget = "boolean"
name = "toc"
label = "ToC (Table of Contents)"
i18n = "duplicate"
required = false
hint = "Whether to show ToC (Table of Contents)."

0 comments on commit 3517dac

Please sign in to comment.