Refactor slides code to avoid duplication

This commit is contained in:
dzello 2018-08-06 19:29:30 +01:00
parent eb6f921b36
commit 86820452f0

View file

@ -10,14 +10,11 @@
<!-- Split the processed content by <hr /> tag -->
{{- range (split $content "<hr />") -}}
<!-- Only wrap in <section> tag if not already wrapped by shortcode -->
{{- if in . "data-noprocess" -}}
{{- if not (in . "data-noprocess") -}}
<section>
{{- end -}}
{{- . | safeHTML -}}
</section>
{{- else }}
<section>
{{- . | safeHTML }}
</section>
{{- end -}}
{{- end -}}
{{- end -}}
{{- end }}