{{ define "main" }} {{ if not (eq .Type "response" "bookmarkof")}}
{{ with .Page.Params.Image }}{{ partial "taxonomy/image.html" . }}{{ end }}

{{ .Title }}

{{ .Description }} {{ 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"}}
{{ range .Page.Params.Photo }} {{end}}
{{end}} {{ if eq .Type "article" }} {{ end }}
{{ if not (eq .Type "article") }}{{ with .Page.Params.category }}Categories: {{ partial "taxonomy/categories.html" . }}{{ end }}{{ end }} {{ $pathJSON := (print .Permalink "bridgy.json") }} {{ $relpathJSON := (print .RelPermalink "bridgy.json") }} {{ if fileExists $relpathJSON }} {{ end }}

Interactions


{{ $mention_ids := index $.Site.Data.index .RelPermalink }} {{ if isset $mention_ids 0}} {{ $mentions := apply $mention_ids "index" $.Site.Data.mentions "." }} {{ $mentions := sort $mentions "wm-received" }}

Comments & Replies

{{ partial "webmention.html" $mentions }}
{{ end }}
{{ else if eq .Type "bookmarkof" }}
{{ $cats := slice }} {{ range .Site.Data.bookmarks }} {{ $cats = $cats | append .category }} {{ end }} {{ $cats = uniq $cats | sort }} {{ range $cats }} {{ $cat := . }}

{{ $cat }}

{{ range $.Site.Data.bookmarks }} {{ if eq .category $cat }}
{{ end }} {{ end }} {{ end }}
{{ else }}

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

{{ if .Content }}

{{ .Content }}

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