Remove newlines from group dict info

Signed-off-by: Danila Fedorin <danila.fedorin@gmail.com>
This commit is contained in:
2024-05-21 21:31:37 -07:00
parent b1334455ea
commit 48bdf9ef08
3 changed files with 6 additions and 6 deletions

View File

@@ -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 }}