mirror of
https://github.com/Threnklyn/reveal-hugo.git
synced 2026-05-18 21:03:29 +02:00
@@ -5,14 +5,16 @@
|
||||
{{ range . -}}
|
||||
<!-- Don't process empty content files -->
|
||||
{{- if ne (len .Content) 0 -}}
|
||||
<!-- Remove the <hr /> tag generated by blackfriday for footnotes -->
|
||||
{{ $content := replace .Content "<div class=\"footnotes\">\n\n<hr />" "<div class=\"footnotes\">" }}
|
||||
<!-- 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 -->
|
||||
{{- if in . "data-noprocess" -}}
|
||||
{{- . | safeHTML -}}
|
||||
{{- else -}}
|
||||
<section>
|
||||
{{ . | safeHTML }}
|
||||
{{- . | safeHTML }}
|
||||
</section>
|
||||
{{ end -}}
|
||||
{{- end -}}
|
||||
|
||||
Reference in New Issue
Block a user