{{ define "main" }} {{/*-- post count */}} {{ $posts := (where .Site.RegularPages "Section" "==" "posts") }} {{ $postCount := len $posts }} {{/*-- page count */}} {{ $pages := (where .Site.RegularPages "Section" "==" "page") }} {{ $pageCount := len $pages }}
Description Value
Pages{{ $pageCount }}
Posts{{ $postCount }}
Post by Categories {{ range $name, $taxonomy := .Site.Taxonomies.categories }} {{ $name | humanize }} ({{ $taxonomy.Count }})   {{end}}
Post by Tags {{ range $name, $taxonomy := .Site.Taxonomies.tags }} #{{ $name | humanize }} ({{ $taxonomy.Count }})   {{end}}
{{end}}