Skip to content

Commit 6a59075

Browse files
authored
chore: fix docsy (#29)
* chore: bump hugo version Signed-off-by: Hristo Hristov <me@hhristov.info> * chore: bump hugo version Signed-off-by: Hristo Hristov <me@hhristov.info> --------- Signed-off-by: Hristo Hristov <me@hhristov.info>
1 parent ee325da commit 6a59075

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
{{ template "_default/_markup/td-render-heading.html" . }}
1+
{{- /* Render link for every non-empty heading */ -}}
2+
{{- $context := . -}}
3+
{{- $id := .Anchor -}}
4+
<h{{ .Level }} id="{{ $id }}" {{- with .Attributes.class }} class="{{ . }}" {{- end -}}>
5+
{{- .Text | safeHTML -}}
6+
<a class="td-heading-self-link" href="#{{ $id }}" aria-label="Heading self-link"></a>
7+
</h{{ .Level }}>

0 commit comments

Comments
 (0)