diff options
author | dzello <jdzielak@gmail.com> | 2018-08-06 21:29:30 +0300 |
---|---|---|
committer | dzello <jdzielak@gmail.com> | 2018-08-06 21:29:30 +0300 |
commit | 86820452f01cc9b16b12210da0f09052f50683ac (patch) | |
tree | 784bc108b9e79c55b7bea1e48919ccd3002cb6f6 /layouts | |
parent | eb6f921b36d622d89327be3d62b515f8415a86a4 (diff) |
Refactor slides code to avoid duplication
Diffstat (limited to 'layouts')
-rw-r--r-- | layouts/partials/reveal-hugo/slides.html | 9 |
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 }} |