mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-01 15:49:11 -05:00
commands: Fix recently broken error template
We need a test for this ...
This commit is contained in:
parent
4b7d3e57a4
commit
2bd9d9099d
1 changed files with 1 additions and 1 deletions
|
@ -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 }}
|
||||||
|
|
Loading…
Reference in a new issue