Indent templates in content.html

master
Will Faught 3 years ago
parent 3ef9217a84
commit d39846cbb3

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

Loading…
Cancel
Save