{{/* Loop over each page. */}} {{ range . }} {{ if ne (len .Content) 0 }} {{/* Must remove `
` generated by Blackfriday footnotes as conflicts with slide delimiter. */}} {{ $content := replace .Content "
\n\n
" "
" }} {{/* Let `
` delimit slides. */}} {{ range (split $content "
") }} {{/* Each `
` defines a new slide. */}} {{/* Only begin new slide `
` if not already added by custom `slide` shortcode. */}} {{ if not (in . "data-noprocess") }}
{{ end }} {{ . | safeHTML }}
{{ end }} {{ end }} {{ end }}