mirror of
https://codeberg.org/forgejo/docs.git
synced 2024-11-24 18:09:26 -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:
parent
533f575dde
commit
c8d40af3e2
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