0
0
Fork 0
mirror of https://codeberg.org/forgejo/docs.git synced 2024-12-24 22:32: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.
This commit is contained in:
Gusted 2023-11-02 22:31:45 +01:00
parent 533f575dde
commit c8d40af3e2
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -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}}"`
```