I´ve been using the following piece of code to create chapter titles for my document. However, I´d like to make it so the first header looks like it, the second one like the original first, the third one like the original second and so on. Specially for the website´s index navigator to work just fine. How could I do it?
#let chapter(title: "No title", body) = {
counter(heading).update(0)
show figure: set place(center+horizon)
show figure.caption: strong
show figure.caption: set text(40pt)
set figure.caption(position: top)
pagebreak(weak: true)
place(center+horizon)[#figure(
kind: "chapter",
numbering: "I",
supplement: "Chapter",
outlined: true,
placement: bottom,
gap: 150pt,
caption: [\ #title],
[#body]
)]
pagebreak(weak: true)
}