HUGO
Count unique data item values
tips & tricks
moorereason
March 31, 2021, 3:11pm
2
A variant:
{{ apply .Site.Data.books "index" "." "Year" | uniq | len }}
8 Likes
Hugo Tutorials & Tips
show post in topic
Related topics
Topic
Replies
Views
Activity
Count content based on front matter variable
support
17
1936
October 13, 2017
Find the number of items in a data file
2
1010
July 30, 2017
Find unique items in toml table
support
2
301
February 25, 2019
Iterate over map, return unique values with a tally
support
2
339
November 21, 2020
Counter using scratch. How to refactor?
support
3
606
February 26, 2019