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