mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-02-22 22:13:43 +01:00
A big change for template paths landed in Hugo 0.146.0. In `layouts`, we: - remove `_default` and move everything in it directly under `layouts` - rename `partials` and `shortcodes` to `_partials` and `_shortcodes` - adapt to Hugo and docsy changes about the render-heading hook. We don't need a copy of the heading self-link template now that it is defined as a partial. - update `docs/baseof.html` to match a change upstream - split `docs/changelog.html` because it doesn't work for the section page anymore. We create a `changelog-index` layout for this. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
12 lines
422 B
HTML
12 lines
422 B
HTML
{{- /*
|
|
|
|
This is a heading render hook (https://gohugo.io/render-hooks/headings/)
|
|
using Docsy's heading self-links hook (https://www.docsy.dev/docs/adding-content/navigation/#heading-self-links).
|
|
|
|
This is used when a heading is encountered in markdown content to generate
|
|
the HTML for that heading. A self-link anchor is added at the end of the
|
|
heading.
|
|
|
|
*/ -}}
|
|
{{ partial "td/render-heading.html" . }}
|