diff --git a/layouts/shortcodes/slide.html b/layouts/shortcodes/slide.html index 81e960b..a260029 100644 --- a/layouts/shortcodes/slide.html +++ b/layouts/shortcodes/slide.html @@ -1,22 +1,37 @@ -{{- .Scratch.Set "slides" slice -}} +{{- $scratch := .Scratch -}} +{{- $scratch.Set "slides" slice -}} {{- if len .Inner -}} - {{- .Scratch.Add "slides" .Inner -}} + {{- $scratch.Add "slides" .Inner -}} {{- end -}} {{- $content := .Get "content" -}} {{- if $content -}} {{- $lookup := split $content "." }} {{- $html := index .Page.Site.Data (index $lookup 0) (index $lookup 1) | markdownify -}} {{- $slides := split $html "