mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02: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