mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 21:02:09 +00:00
Add section permalinks to non-article sections
This commit is contained in:
parent
9d4f18ffde
commit
8ef0519a5c
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@
|
||||||
I'm a markup criminal now.
|
I'm a markup criminal now.
|
||||||
-->
|
-->
|
||||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}" tabindex="-1">{{ .Text | safeHTML -}}</h{{ .Level }}>
|
<h{{ .Level }} id="{{ .Anchor | safeURL }}" tabindex="-1">{{ .Text | safeHTML -}}</h{{ .Level }}>
|
||||||
{{- if and (eq .Level 2) (eq .Page.Section "posts") -}}
|
{{- if and (eq .Level 2) (.Page.Section) (ne .Page.Section "notes") -}}
|
||||||
<!--crimes-->
|
<!--crimes-->
|
||||||
<aside role="none"><a
|
<aside role="none"><a
|
||||||
id="{{ .Anchor | safeURL }}-anchor" href="#{{ .Anchor | safeURL }}"
|
id="{{ .Anchor | safeURL }}-anchor" href="#{{ .Anchor | safeURL }}"
|
||||||
|
|
Loading…
Reference in a new issue