Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dzello/reveal-hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordzello <jdzielak@gmail.com>2018-08-06 21:29:30 +0300
committerdzello <jdzielak@gmail.com>2018-08-06 21:29:30 +0300
commit86820452f01cc9b16b12210da0f09052f50683ac (patch)
tree784bc108b9e79c55b7bea1e48919ccd3002cb6f6 /layouts
parenteb6f921b36d622d89327be3d62b515f8415a86a4 (diff)
Refactor slides code to avoid duplication
Diffstat (limited to 'layouts')
-rw-r--r--layouts/partials/reveal-hugo/slides.html9
1 files changed, 3 insertions, 6 deletions
diff --git a/layouts/partials/reveal-hugo/slides.html b/layouts/partials/reveal-hugo/slides.html
index 3ee4432..fe41236 100644
--- a/layouts/partials/reveal-hugo/slides.html
+++ b/layouts/partials/reveal-hugo/slides.html
@@ -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" -}}
- {{- . | safeHTML -}}
-</section>
- {{- else }}
+ {{- if not (in . "data-noprocess") -}}
<section>
- {{- . | safeHTML }}
-</section>
{{- end -}}
+ {{- . | safeHTML -}}
+</section>
{{- end -}}
{{- end -}}
{{- end }}