2018-05-01 03:47:20 +02:00
|
|
|
<div class="reveal">
|
|
|
|
<!-- Any section element inside of this container is displayed as a slide -->
|
|
|
|
<div class="slides">
|
|
|
|
<!-- Use the array of pages passed as a param -->
|
|
|
|
{{ range . -}}
|
|
|
|
<!-- Don't process empty content files -->
|
|
|
|
{{- if ne (len .Content) 0 -}}
|
2018-07-13 00:21:48 +02:00
|
|
|
<!-- Remove the <hr /> tag generated by blackfriday for footnotes -->
|
2018-07-22 10:54:47 +02:00
|
|
|
{{- $content := replace .Content "<div class=\"footnotes\">\n\n<hr />" "<div class=\"footnotes\">" -}}
|
2018-05-01 03:47:20 +02:00
|
|
|
<!-- Split the processed content by <hr /> tag -->
|
2018-07-13 00:21:48 +02:00
|
|
|
{{- range (split $content "<hr />") -}}
|
2018-05-01 03:47:20 +02:00
|
|
|
<!-- Only wrap in <section> tag if not already wrapped by shortcode -->
|
|
|
|
{{- if in . "data-noprocess" -}}
|
2018-08-03 16:07:12 +02:00
|
|
|
{{- . | safeHTML -}}
|
|
|
|
</section>
|
2018-07-22 10:54:47 +02:00
|
|
|
{{- else }}
|
|
|
|
<section>
|
|
|
|
{{- . | safeHTML }}
|
|
|
|
</section>
|
|
|
|
{{- end -}}
|
2018-05-01 03:47:20 +02:00
|
|
|
{{- end -}}
|
|
|
|
{{- end -}}
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
</div>
|