1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-17 22:32:10 +00:00

Add section permalinks to non-article sections

This commit is contained in:
Rohan Kumar 2022-07-11 15:19:50 -07:00
parent 9d4f18ffde
commit 8ef0519a5c
No known key found for this signature in database
GPG key ID: 1E892DB2A5F84479

View file

@ -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 }}"