From 37fcc0c15851ad8ac484ea6cee19b46e022c2f57 Mon Sep 17 00:00:00 2001 From: dzello Date: Tue, 7 Aug 2018 18:27:19 +0200 Subject: [PATCH] Clean up slide shortcode Fixes a bug outputting junk into the HTML tag as a result of Scratch calls and avoid reprocessing a section that only need to be processed once --- layouts/shortcodes/slide.html | 40 ++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/layouts/shortcodes/slide.html b/layouts/shortcodes/slide.html index be6f7e3..effa9fa 100644 --- a/layouts/shortcodes/slide.html +++ b/layouts/shortcodes/slide.html @@ -14,28 +14,30 @@ {{- $params := . -}} {{- $noPrefix := slice "id" "class" -}} {{- $noOutput := slice "content" "template" -}} -{{- range $sindex, $svalue := $scratch.Get "slides" }} -