One
Code
Result
Rendered
{{ print "foo" }}
{{ print "bar" }}
{{ range $k, $v := .Params.arrays }}
<h3>{{ $k }}</h3>
{{ $v }}
{{ end }}
foo
bar
foo
bar
Code
Result
Rendered
{{ $f := site.GetPage "one" }}
{{ $f }}
<br>
{{ $f.Title }}
Page(/one.md)
<br>
One
Page(/one.md)
One
One
Code
Result
Rendered
<ul>
{{ range $i, $e := first 5 site.Pages }}
<li>{{.Title}}</li>
{{ end }}
</ul>
<ul>
<li>Categories</li>
<li>Hugo Documentation Helper</li>
<li>One</li>
<li>Tags</li>
<li>Two</li>
</ul>
- Categories
- Hugo Documentation Helper
- One
- Tags
- Two