{{/* Loop over each page. */}} {{ range . }} {{ if ne (len .Content) 0 }} {{/* Must remove `
` generated by Blackfriday footnotes as conflicts with slide delimiter. */}} {{/* Commented out workaround as Blackfriday has been superseded by Goldmark in Hugo 0.60. */}} {{/* TODO: reintroduce a similar workaround if Goldmark requires it. */}} {{/* $content := replace .Content "
\n\n
" "
" */}} {{ $content := .Content }}{{/* For Goldmark. */}} {{/* Let `---` delimit slides. In Goldmark, that is `
`. Alternatively, for Blackfriday, use `
`. */}} {{ 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 }}