Apply suggestions

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-11-28 15:09:36 +01:00
parent 869ca5786b
commit c5cbfba878
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D
2 changed files with 13 additions and 3 deletions

View file

@ -1 +1,11 @@
{{- /*
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.
*/ -}}
{{ template "_default/_markup/td-render-heading.html" . }}

View file

@ -1,8 +1,8 @@
{{- /*
A copy of the private "_default/_markup/_td-heading-self-link.html" template
in Docsy's "_default/_markup/_td-render-heading.html" partial to be able to
reuse it when the title has custom markup.
A simplified copy of the inlined "_default/_markup/_td-heading-self-link.html"
template in Docsy's "_default/_markup/td-render-heading.html" template to be
able to reuse it when the heading has custom markup.
Takes a string which is the ID of the heading.