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
Group data by year
support
3
309
May 3, 2023
Access range's count
6
3142
June 16, 2017
.File.UniqueID on zero object
support
4
1117
September 20, 2020
Find the number of items in a data file
2
980
July 30, 2017
Count content based on front matter variable
support
17
1889
October 13, 2017