From 88856e6c01b6df4516dccc07b67c65fc21a014ef Mon Sep 17 00:00:00 2001 From: Karen Bradshaw Date: Fri, 7 Aug 2020 16:48:43 -0400 Subject: [PATCH] modify layout of codenew shortcode --- layouts/shortcodes/codenew.html | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/layouts/shortcodes/codenew.html b/layouts/shortcodes/codenew.html index 0b4a34e571..e8c6aa9656 100644 --- a/layouts/shortcodes/codenew.html +++ b/layouts/shortcodes/codenew.html @@ -18,21 +18,12 @@ {{ errorf "[%s] %q not found in %q" site.Language.Lang $fileDir.File $bundlePath }} {{ end }} {{ with $.Scratch.Get "content" }} - - - - - - - - - - - -
- {{ with $ghlink }}{{ end }} - {{ $file }} - {{ if $ghlink }}{{ end }} - -
{{ highlight . $codelang "" }}
-{{ end }} +
+
+ {{- with $ghlink -}}{{- end -}} + {{ $file }} + {{ if $ghlink }}{{ end }} +
+{{ highlight . $codelang "" }} +
+{{- end -}}