Count all pages from section in Hugo
If you want to display the total number of content pages that Hugo generated from a particular section use where
to filter section pages:
<p>Total number of pages in the /articles/ section:
{{ len (where .Site.RegularPages "Section" "==" "articles") }}.
</p>
This site is ad-free and doesn’t use trackers. If you’d like to support my writing, I’d love if you could buy me a coffee.