Remove render-heading.html
This commit is contained in:
@@ -1 +0,0 @@
|
||||
<h{{ .Level }} id="{{ .Anchor | safeURL }}">{{ .Text | safeHTML }}<a class="paige-header-link small" href="#{{ .Anchor | safeURL }}">#</a></h{{ .Level }}>
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user