From 86820452f01cc9b16b12210da0f09052f50683ac Mon Sep 17 00:00:00 2001 From: dzello Date: Mon, 6 Aug 2018 19:29:30 +0100 Subject: [PATCH] Refactor slides code to avoid duplication --- layouts/partials/reveal-hugo/slides.html | 9 +++------ 1 file 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 @@ {{- range (split $content "
") -}} - {{- if in . "data-noprocess" -}} + {{- if not (in . "data-noprocess") -}} +
+ {{- end -}} {{- . | safeHTML -}}
- {{- else }} -
- {{- . | safeHTML }} -
- {{- end -}} {{- end -}} {{- end -}} {{- end }}