{{ $pages := .Pages }} {{ if .IsHome }} {{ $pages = where site.RegularPages "Type" "in" site.Params.mainSections }} {{ end }}
{{ if .IsHome }}

{{ site.Params.indexTitle | markdownify }}

{{ else }}

{{ .Title | markdownify }}{{ if eq .Kind "term" }}  

{{ if eq .Title "/Slashes" }}My collection of slashpages.
{{ else }}{{ with .Description }}{{ . }}
{{ else }}
{{ end }}{{ end }} {{ end }}{{ end }} {{ .Content }}
{{- if eq .Kind "taxonomy" }} {{- if eq .Title "Tags" }}
{{- range $key, $value := .Site.Taxonomies }} {{- $slicedTags := ($value.ByCount) }} {{- range $slicedTags }} {{- if eq $key "tags"}}
{{ .Name }}{{ .Count }}
{{- end }} {{- end }} {{- end }}
{{- else }} {{- range .Pages.ByDate.Reverse }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}

{{ .Title | markdownify }}

{{ .Description }}

{{ end }} {{- end }} {{- else }} {{- if eq .Title "/Slashes" }} {{- $sortedSlashes := sort $pages "Title" }} {{- range $sortedSlashes }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}

{{ .Title | markdownify }}

{{ .Description }}

{{- end }} {{- else }} {{- range (.Paginate $pages).Pages }} {{- $postDate := .Date.Format "2006-01-02" }} {{- $updateDate := .Lastmod.Format "2006-01-02" }}

{{ .Title | markdownify }}

{{if .Description }}{{ .Description }}{{ else }}{{ .Summary }}{{ end }}

{{- end }} {{- template "_internal/pagination.html" . }} {{- end }} {{- end }}