initial commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{{ define "main" }}
|
||||
{{- $content := .Content -}}
|
||||
{{- $content = replaceRE `<div class="footnotes" role="doc-endnotes">` "" $content -}}
|
||||
{{- $content = replaceRE `</div>\s*$` "" $content -}}
|
||||
{{- $tmp := $content | safeHTML -}}
|
||||
{{ $sections := split $tmp "<h2" }}
|
||||
{{ range after 1 $sections }}
|
||||
<section>
|
||||
{{ print "<h2" . | safeHTML }}
|
||||
</section>
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
Reference in New Issue
Block a user