mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
@@ -66,6 +66,11 @@ func (t *TemplateFuncsNamespace) AddMethodMapping(m any, aliases []string, examp
|
||||
|
||||
name := methodToName(m)
|
||||
|
||||
// Rewrite §§ to ` in example commands.
|
||||
for i, e := range examples {
|
||||
examples[i][0] = strings.ReplaceAll(e[0], "§§", "`")
|
||||
}
|
||||
|
||||
// sanity check
|
||||
for _, e := range examples {
|
||||
if e[0] == "" {
|
||||
|
||||
Reference in New Issue
Block a user