<!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#">
<head>
<meta charset="utf-8" />
<title>{{ truncate (title .Entry) 70 }}</title>
{{ template "meta.gotmpl" }}
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title .Entry }}" />
<meta property="og:url" content="{{ get .Entry "url" }}" />
</head>
<body>
<nav>
<a href="/">↑ Back to the feed</a>
</nav>
<article class="h-entry {{ get .Posts.Meta "hx-kind" }}">
{{ template "entry.gotmpl" .Posts.Meta }}
<div class="expanded meta">
{{ with .Posts.Meta }}
<div>
<a href="/kind/{{ get . "hx-kind" }}">{{ get . "hx-kind" }}</a>
{{ if has . "updated" }}
<del>published <a class="u-url" href="{{ get . "url" }}" title="{{ get . "published" }}">
<time class="dt-published" datetime="{{ get . "published" }}">{{ humanDateTime . "published" }}</time></a></del> updated <time class="dt-updated" datetime="{{ get . "updated" }}">{{ humanDateTime . "updated" }}</time>
{{ else }}
published <a class="u-url" href="{{ get . "url" }}" title="{{ get . "published" }}">
<time class="dt-published" datetime="{{ get . "published" }}">{{ humanDateTime . "published" }}</time></a>
{{ end }}
</div>
<a class="u-author h-card hidden" href="{{ get . "author.properties.url" }}">{{ get . "author.properties.name" }}</a>
{{ if has . "hx-client-id" }}
<div>
using
<a href="{{ get . "hx-client-id" }}">{{ get . "hx-client-id" }}</a>
</div>
{{ end }}
{{ if .syndication }}
<div>
syndicated to
{{ range withEnd .syndication }}
<a class="u-syndication" href="{{ .El }}">{{ syndicationName .El }}</a>{{ if not .End }}, {{ end }}
{{ end }}
</div>
{{ end }}
{{ if .category }}
<div>
filed under
{{ range withEnd .category }}
<a class="p-category" href="/category/{{ .El }}">{{ .El }}</a>{{ if not .End }}, {{ end }}
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
<details class="meta">
<summary>Interactions ({{ len .Mentions }})</summary>
<ol class="inner">
{{ range .Mentions }}
<li>
{{ if has .Properties "in-reply-to" }}reply from{{ else if has .Properties "repost-of" }}reposted by{{ else if has .Properties "like-of" }}liked by{{ else }}mentioned by{{ end }}
<a href="{{ .Subject }}">{{ if has .Properties "author" }}{{ if has .Properties "author.properties.name" }}{{ get .Properties "author.properties.name" }}{{ else }}{{ get .Properties "author.properties.url" }}{{ end }}{{ else }}{{ .Subject }}{{ end }}</a>
</li>
{{ end }}
</ol>
</details>
</article>
{{ template "footer.gotmpl" }}
</body>
</html>