From 09b90c3bbcffa9123d4b76ab1a972f8f8d422950 Mon Sep 17 00:00:00 2001 From: Danila Fedorin Date: Thu, 18 Jun 2020 22:30:01 -0700 Subject: [PATCH] Add line numbers to codelines shortode. --- themes/vanilla/layouts/shortcodes/codelines.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/vanilla/layouts/shortcodes/codelines.html b/themes/vanilla/layouts/shortcodes/codelines.html index d275582..6b0b44b 100644 --- a/themes/vanilla/layouts/shortcodes/codelines.html +++ b/themes/vanilla/layouts/shortcodes/codelines.html @@ -6,4 +6,4 @@ {{ .Scratch.Set "u" $t }} {{ end }} {{ $v := first (add (sub (int (.Get 3)) (int (.Get 2))) 1) (.Scratch.Get "u") }} -{{ highlight (delimit $v "\n") (.Get 0) "" }} +{{ highlight (delimit $v "\n") (.Get 0) (printf "linenos=table,linenostart=%d" (.Get 2)) }}