{{/* Load the .Content file, remove the front-matter */}} {{ $tempPath := (path.Join .this.File.Dir .file) }} {{ $temp := $tempPath | readFile | replaceRE "^---[\\s\\S]+?---" "" }} {{/* Convert xml tags into shortcodes */}} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `{{}}` | replaceRE `` `{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `{{}}` | replaceRE `` `{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `{{}}` | replaceRE `` `{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `}}{{}}` }} {{ $temp = replace $temp `` `{{}}` | replaceRE `` `{{}}` }} {{/* Convert to HTML */}} {{ $temp = .this.RenderString $temp }} {{/* Unwrap standalone videos */}} {{ $temp = replace $temp `

` `` }} {{/* Unwrap embed */}} {{ $temp = replace $temp `

` `` }} {{/* Add anchors to paragraphs */}} {{ $ret := split $temp "

" }} {{ range $index, $this := $ret }} {{ if ne $index 0 }}

# {{end}} {{ $this | safeHTML }} {{ end }}