mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12: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.
|
||||
-->
|
||||
<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-->
|
||||
<aside role="none"><a
|
||||
id="{{ .Anchor | safeURL }}-anchor" href="#{{ .Anchor | safeURL }}"
|
||||
|
|
Loading…
Reference in a new issue