diff --git a/layouts/shortcodes/codeblock.html b/layouts/shortcodes/codeblock.html
index 2055f0f..6261a6b 100644
--- a/layouts/shortcodes/codeblock.html
+++ b/layouts/shortcodes/codeblock.html
@@ -1,5 +1,5 @@
{{ partial "geturl.html" (dict "scratch" .Scratch "path" (.Get 1) "siteSourceUrl" .Site.Params.siteSourceUrl "submoduleLinks" .Site.Data.submodules) }}
-{{ $groupconfig := dict
+{{- $groupconfig := dict
"url" (.Scratch.Get "bestUrl")
"basePath" (.Scratch.Get "bestPath")
"path" (.Get 1)
@@ -7,5 +7,5 @@
"code" (readFile (printf "code/%s" (.Get 1)))
"language" (.Get 0)
"opts" "linenos=table"
-}}
+-}}
{{ partial "highlightgroup.html" $groupconfig }}
diff --git a/layouts/shortcodes/codelines.html b/layouts/shortcodes/codelines.html
index d500d27..5188e01 100644
--- a/layouts/shortcodes/codelines.html
+++ b/layouts/shortcodes/codelines.html
@@ -23,7 +23,7 @@
{{ with (.Scratch.Get "hidden") }}
{{ . | markdownify }}
{{ end }}
-{{ $groupconfig := dict
+{{- $groupconfig := dict
"url" (.Scratch.Get "bestUrl")
"basePath" (.Scratch.Get "bestPath")
"path" (.Get 1)
@@ -33,7 +33,7 @@
"lastLine" (int (.Get 3))
"language" (.Get 0)
"opts" (printf "linenos=table,linenostart=%d%s" (.Get 2) (.Scratch.Get "opts"))
-}}
+-}}
{{ partial "highlightgroup.html" $groupconfig }}
{{ with (.Scratch.Get "hidden") }}
%s
" (htmlEscape (readFile (printf "code/%s" (.Get 0))))))
-}}
+-}}
{{ partial "group.html" $groupconfig }}