{{ define "main" }}
{{ partial "sidebar.html" (dict "context" .) }} {{ partial "toc.html" . }}
{{ partial "breadcrumb.html" . }}

{{ .Title }}

{{ if eq .Kind "taxonomy" }} {{ $allCats := (T "allCats" ) }} {{ $postsInCat := (T "postsInCat") }}

{{ $allCats }}

    {{- range $.Site.Taxonomies.categories.Alphabetical -}}
  • {{ .Page.Title }} {{ .Count }}
  • {{ end }}
{{ else if eq .Kind "term" }} {{ $catName := .Title }} {{ $catPosts := where .Site.RegularPages "Params.categories" "intersect" (slice $catName) }} {{ $noPosts := (T "noPosts") }} {{ $postsInCat := (T "postsInCat") }} {{ if gt (len $catPosts) 0 }}

{{ $postsInCat }} "{{ $catName }}"

    {{ range $catPosts.ByDate.Reverse }}
  • {{ .Date.Format "Jan 02, 2006" }} {{ .Title }}
  • {{ end }}
{{ else }}

{{ $noPosts }}

{{ end }} {{ end }} {{ .Content }}
{{ partial "components/last-updated.html" . }} {{ partial "components/comments.html" . }}
{{ end }}