mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 10:18:40 +00:00
commands: Fix recently broken error template
We need a test for this ...
This commit is contained in:
1 file changed
+1
-1
@@ -72,7 +72,7 @@ var buildErrorTemplate = `<!doctype html>
|
|||||||
<main>
|
<main>
|
||||||
{{ highlight .Error "apl" "noclasses=true,style=monokai" }}
|
{{ highlight .Error "apl" "noclasses=true,style=monokai" }}
|
||||||
{{ with .File }}
|
{{ with .File }}
|
||||||
{{ $params := printf "noclasses=true,style=monokai,linenos=table,hl_lines=%d,linenostart=%d" (add .LinesPos 1) (sub .LineNumber .LinesPos) }}
|
{{ $params := printf "noclasses=true,style=monokai,linenos=table,hl_lines=%d,linenostart=%d" (add .LinesPos 1) (sub .Position.LineNumber .LinesPos) }}
|
||||||
{{ $lexer := .ChromaLexer | default "go-html-template" }}
|
{{ $lexer := .ChromaLexer | default "go-html-template" }}
|
||||||
{{ highlight (delimit .Lines "\n") $lexer $params }}
|
{{ highlight (delimit .Lines "\n") $lexer $params }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|||||||
Reference in new issue
Block a user