Fix fileredByCategory fileter pipe
This commit is contained in:
parent
68b4d1a246
commit
be37a6223e
@ -9,7 +9,7 @@ eleventyNavigation:
|
|||||||
<ul>
|
<ul>
|
||||||
{{ for category of collections.categories }}
|
{{ for category of collections.categories }}
|
||||||
{{ set categoryUrl }}/categories/{{ category | slugify }}/{{ /set }}
|
{{ set categoryUrl }}/categories/{{ category | slugify }}/{{ /set }}
|
||||||
{{ set categoryPostCount = collections.contents | filterByCategory(category) |> itemCount }}
|
{{ set categoryPostCount = collections.contents |> filterByCategory(category) |> itemCount }}
|
||||||
<li><a href="{{ categoryUrl }}">{{ category }}</a> ({{ categoryPostCount }})</li>
|
<li><a href="{{ categoryUrl }}">{{ category }}</a> ({{ categoryPostCount }})</li>
|
||||||
{{ /for }}
|
{{ /for }}
|
||||||
</ul>
|
</ul>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user