{{- $pages := where .Pages "Params.displayinlist" "!=" false -}} {{- if .IsHome -}} {{- $pages = where .Site.RegularPages "Params.displayinlist" "!=" false -}} {{- end -}} {{- $paginator := .Paginate $pages -}} {{ partial "head.html" . }} {{ partial "nav-bar.html" . }}
{{ if or (not (eq .Description "")) (not (eq .Title "")) -}}

{{ if eq .Kind "term" }}Topic{{ else }}Archive{{ end }}

{{ with .Title | markdownify }}

{{ . }}

{{ end }} {{ if .Description }}

{{ .Description }}

{{ else if eq .Kind "term" }}

{{ len $pages }} {{ if eq (len $pages) 1 }}article{{ else }}articles{{ end }}

{{ end }}
{{- end }} {{ with .Content -}}
{{ . }}
{{- end }}
{{- range $paginator.Pages -}} {{ .Render "li" }} {{- end }}
{{ if or ($paginator.HasPrev) ($paginator.HasNext) -}} {{- end }}
{{ partial "footer.html" . }} {{ partial "scripts.html" . }}