mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-14 01:32:11 +00:00
Fix bad target id
This commit is contained in:
parent
152219f2e8
commit
af5380e236
1 changed files with 5 additions and 1 deletions
|
@ -11,7 +11,11 @@
|
||||||
To achieve all these properties, I had to break the first rule of ARIA and misuse <aside>.
|
To achieve all these properties, I had to break the first rule of ARIA and misuse <aside>.
|
||||||
I'm a markup criminal now.
|
I'm a markup criminal now.
|
||||||
-->
|
-->
|
||||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}" tabindex="-1">{{ .Text | safeHTML -}}</h{{ .Level }}>
|
{{- $id := .Anchor | safeURL -}}
|
||||||
|
{{- if eq .Level 1 -}}
|
||||||
|
{{- $id = "h1" -}}
|
||||||
|
{{- end -}}
|
||||||
|
<h{{ .Level }} id="{{ $id }}" tabindex="-1">{{ .Text | safeHTML -}}</h{{ .Level }}>
|
||||||
{{- if and (eq .Level 2) (.Page.Section) (ne .Page.Section "notes") -}}
|
{{- if and (eq .Level 2) (.Page.Section) (ne .Page.Section "notes") -}}
|
||||||
<!--crimes-->
|
<!--crimes-->
|
||||||
<aside role="none"><a
|
<aside role="none"><a
|
||||||
|
|
Loading…
Reference in a new issue