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

{{ .Title }}

{{ if eq .Kind "taxonomy" }} {{ $allTags := (T "allTags") }} {{ $taggedWith := (T "taggedWith") }}

{{ $allTags }}

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

Posts tagged with "{{ $tagName }}"

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

{{ $noPosts }}

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