{{ define "main" }}
{{ range where .Site.Pages "Kind" "page"}} {{ if not (eq .Type "response")}}
{{if eq .Type "article" }}
{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

{{ .Title }}

{{ .Description }}{{ end }} {{ if eq .Type "article" }}
{{ with .Page.Params.Blog }}Blog: {{ partial "taxonomy/blog.html" . }}{{ end }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ .ReadingTime }}-minute read
{{ with .Page.Params.tag }}Tags: {{ partial "taxonomy/tags.html" . }}{{ end }}
{{ end }}
{{ .Content }} {{ if eq .Type "photo"}}
{{$link := .Permalink}} {{$summary := .Content}} {{ range .Page.Params.Photo }} {{ if isset . "value" }} {{ .alt }} {{ else }} Alt not yet added, will fix! {{end}}{{end}}
{{end}}

{{ if not (eq .Type "article") }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
{{ end }}

{{ else }}

{{ .Site.Params.Title }} {{ if eq .Params.posttype "like-of" }} liked {{ index .Params "like-of" }}{{ end }} {{ if eq .Params.posttype "in-reply-to" }} replied to {{ index .Params "in-reply-to" }}{{ end }} {{ if eq .Params.posttype "repost-of" }} shared {{ index .Params "repost-of" }}{{ end }}

{{ if .Content }}
{{ .Content }}
{{end}} {{ if not (eq .Type "article") }}
{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}
{{ end }}

{{end}} {{ end }}
{{ end }}