mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-25 07:48:52 +00:00
Remove extra parentheses in GetPage function example
This commit is contained in:
@@ -41,7 +41,7 @@ This code snippet---in the form of a [partial template][partials]---allows you t
|
||||
{{% code file="grab-top-two-tags.html" %}}
|
||||
```html
|
||||
<ul class="most-popular-tags">
|
||||
{{ $t := $.Site.GetPage("taxonomyTerm", "tags") }}
|
||||
{{ $t := $.Site.GetPage "taxonomyTerm" "tags" }}
|
||||
{{ range first 2 $t.Data.Terms.ByCount }}
|
||||
<li>{{.}}</li>
|
||||
{{ end }}
|
||||
|
||||
Vendored
BIN
Binary file not shown.
Vendored
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user