mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-19 21:21:39 +02:00
@@ -25,7 +25,9 @@ func init() {
|
||||
ctx := New()
|
||||
|
||||
examples := [][2]string{
|
||||
{`eq: {{ if eq .Section "blog" }}current{{ end }}`, `eq: current`},
|
||||
{`{{ if eq .Section "blog" }}current{{ end }}`, `current`},
|
||||
{`{{ "Hugo Rocks!" | default "Hugo Rules!" }}`, `Hugo Rocks!`},
|
||||
{`{{ "" | default "Hugo Rules!" }}`, `Hugo Rules!`},
|
||||
}
|
||||
|
||||
return &internal.TemplateFuncsNamespace{
|
||||
|
Reference in New Issue
Block a user