0
0
Fork 0
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:
Gusted 2023-11-02 22:31:45 +01:00 committed by github-actions[bot]
parent 0c31aa9bfd
commit be128511a1

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