Refactor slides code to avoid duplication

This commit is contained in:
dzello 2018-08-06 19:29:30 +01:00
parent eb6f921b36
commit 86820452f0
1 changed files with 3 additions and 6 deletions

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 }}