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>
Piesakies jaunumiem
Pievienojies abonentiem un saņem jaunāko saturu no manis tieši savā e-pastā. Nekāda spama. Tikai noderīgs saturs.