mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-30 19:03:43 -05:00
Use handlebars syntax highlight for Go templates
- [Shiki](https://github.com/shikijs/shiki) doesn't support highlighting
Go templates, so instead use handlebars template highlighting for this
code snippet.
(cherry picked from commit c8d40af3e2
)
This commit is contained in:
parent
0c31aa9bfd
commit
be128511a1
1 changed files with 1 additions and 1 deletions
|
@ -220,7 +220,7 @@ Please note, the access logger will log at `INFO` level, setting the
|
|||
|
||||
This value represents a go template. Its default value is
|
||||
|
||||
```tmpl
|
||||
```handlebars
|
||||
{{.Ctx.RemoteHost}} - {{.Identity}} {{.Start.Format "[02/Jan/2006:15:04:05 -0700]" }} "{{.Ctx.Req.Method}} {{.Ctx.Req.URL.RequestURI}} {{.Ctx.Req.Proto}}" {{.ResponseWriter.Status}} {{.ResponseWriter.Size}} "{{.Ctx.Req.Referer}}" "{{.Ctx.Req.UserAgent}}"`
|
||||
```
|
||||
|
||||
|
|
Loading…
Reference in a new issue