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

{{ .Title }}

{{ .Description }}
{{ 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 }} {{ if isset . "value" }} {{ .alt }} {{ else }} Alt not yet added, will fix! {{end}} {{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


Alternatively, if you do not have a webmentions enabled website then you can leave a message using the comment parade form below.

Comment Parade

Please copy the following and paste into the URL field below: {{.Permalink }}

All going well, interactions will take a few minutes to appear, possibly longer due to .. gremlins.

{{ $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 {{ index .Params "in-reply-to" }}{{ end }} {{ if eq .Params.posttype "like-of" }} liked {{ index .Params "like-of" }}{{ 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}}