Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/hugo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-01 13:28:30 +0300
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-01 23:06:35 +0300
commit1d18eb0574a57c3e9f468659d076a666a3dd76f2 (patch)
tree8536aa6e8e2fc496b3b2d7b66a2e5f0110e625a6 /commands/server_errors.go
parent33a7b36fd42ee31dd79115ec6639bed24247332f (diff)
Add file (line/col) info to ref/relref errors
See #5371
Diffstat (limited to 'commands/server_errors.go')
-rw-r--r--commands/server_errors.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/server_errors.go b/commands/server_errors.go
index 11f2ab281..6a56a1d19 100644
--- a/commands/server_errors.go
+++ b/commands/server_errors.go
@@ -72,7 +72,7 @@ var buildErrorTemplate = `<!doctype html>
<main>
{{ highlight .Error "apl" "noclasses=true,style=monokai" }}
{{ with .File }}
- {{ $params := printf "noclasses=true,style=monokai,linenos=table,hl_lines=%d,linenostart=%d" (add .Pos 1) (sub .LineNumber .Pos) }}
+ {{ $params := printf "noclasses=true,style=monokai,linenos=table,hl_lines=%d,linenostart=%d" (add .LinesPos 1) (sub .LineNumber .LinesPos) }}
{{ $lexer := .ChromaLexer | default "go-html-template" }}
{{ highlight (delimit .Lines "\n") $lexer $params }}
{{ end }}