all: Format files with gofmt

This commit is contained in:
Oleksandr Redko
2023-10-04 22:25:43 +03:00
committed by Bjørn Erik Pedersen
parent 37a2d5eb4e
commit 274852bcf2
4 changed files with 23 additions and 18 deletions

View File

@@ -213,7 +213,8 @@ func (c *templateContext) hasIdent(idents []string, ident string) bool {
// collectConfig collects and parses any leading template config variable declaration.
// This will be the first PipeNode in the template, and will be a variable declaration
// on the form:
// {{ $_hugo_config:= `{ "version": 1 }` }}
//
// {{ $_hugo_config:= `{ "version": 1 }` }}
func (c *templateContext) collectConfig(n *parse.PipeNode) {
if c.t.typ != templateShortcode {
return