Refactor slides code to avoid duplication
This commit is contained in:
parent
eb6f921b36
commit
86820452f0
|
@ -10,14 +10,11 @@
|
||||||
<!-- Split the processed content by <hr /> tag -->
|
<!-- Split the processed content by <hr /> tag -->
|
||||||
{{- range (split $content "<hr />") -}}
|
{{- range (split $content "<hr />") -}}
|
||||||
<!-- Only wrap in <section> tag if not already wrapped by shortcode -->
|
<!-- Only wrap in <section> tag if not already wrapped by shortcode -->
|
||||||
{{- if in . "data-noprocess" -}}
|
{{- if not (in . "data-noprocess") -}}
|
||||||
|
<section>
|
||||||
|
{{- end -}}
|
||||||
{{- . | safeHTML -}}
|
{{- . | safeHTML -}}
|
||||||
</section>
|
</section>
|
||||||
{{- else }}
|
|
||||||
<section>
|
|
||||||
{{- . | safeHTML }}
|
|
||||||
</section>
|
|
||||||
{{- end -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
Loading…
Reference in New Issue