mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 18:37:16 -04:00
Fix .Data.Terms usage in taxonomy template example
.Data.Taxonomy should be .Data.Terms
This commit is contained in:
parent
eb371e5235
commit
94af72b52a
@ -143,7 +143,7 @@ Taxonomies can be ordered by either alphabetical key or by the number of content
|
||||
```
|
||||
<ul>
|
||||
{{ $data := .Data }}
|
||||
{{ range $key, $value := .Data.Taxonomy.Alphabetical }}
|
||||
{{ range $key, $value := .Data.Terms.Alphabetical }}
|
||||
<li><a href="{{ $.Site.LanguagePrefix }}/{{ $data.Plural }}/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> {{ $value.Count }} </li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
@ -154,7 +154,7 @@ Taxonomies can be ordered by either alphabetical key or by the number of content
|
||||
```
|
||||
<ul>
|
||||
{{ $data := .Data }}
|
||||
{{ range $key, $value := .Data.Taxonomy.ByCount }}
|
||||
{{ range $key, $value := .Data.Terms.ByCount }}
|
||||
<li><a href="{{ $.Site.LanguagePrefix }}/{{ $data.Plural }}/{{ $value.Name | urlize }}"> {{ $value.Name }} </a> {{ $value.Count }} </li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
|
Loading…
x
Reference in New Issue
Block a user