Remove render-heading.html

This commit is contained in:
Will Faught
2022-12-30 18:52:53 -08:00
parent 92741185ed
commit a87d43d405
2 changed files with 1 additions and 2 deletions

View File

@@ -1 +0,0 @@
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}<a class="paige-header-link small" href="#{{ .Anchor | safeURL }}">#</a></h{{ .Level }}>

View File

@@ -7,7 +7,7 @@
{{ if .Scratch.Get "paige_show_full_pages" }}
{{ .Content }}
{{ else }}
{{ .Content }}
{{ .Content | replaceRE `(<h[1-6] id="([^"]+)".+)(</h[1-6]+>)` `${1}<a class="paige-header-link small" href="#${2}">#</a>${3}` | safeHTML }}
{{ end }}
</article>
</div>