owl-blogs/embed/post.html

71 lines
2.1 KiB
HTML
Raw Permalink Normal View History

<div class="h-entry">
<hgroup>
<h1 class="p-name">{{.Title}}</h1>
<small>
2022-10-10 19:26:24 +00:00
<a class="u-url" href="{{.Post.FullUrl}}">#</a>
Published:
<time class="dt-published" datetime="{{.Post.Meta.Date}}">
2022-09-11 15:34:50 +00:00
{{.Post.Meta.FormattedDate}}
</time>
2022-10-07 17:51:13 +00:00
{{ if .Post.User.Config.AuthorName }}
by
2022-10-10 19:26:24 +00:00
<a class="p-author h-card" href="{{.Post.User.FullUrl}}">
{{ if .Post.User.AvatarUrl }}
<img class="u-photo u-logo" style="height: 1em;" src="{{ .Post.User.AvatarUrl }}" alt="{{ .Post.User.Config.Title }}" />
{{ end }}
{{.Post.User.Config.AuthorName}}
</a>
2022-10-07 17:51:13 +00:00
{{ end }}
</small>
</hgroup>
<hr>
<br>
2022-10-10 18:59:06 +00:00
{{ if .Post.Meta.Reply.Url }}
<p style="font-style: italic;filter: opacity(80%);">
In reply to: <a class="u-in-reply-to h-cite" rel="in-reply-to" href="{{.Post.Meta.Reply.Url}}">
{{ if .Post.Meta.Reply.Text }}
{{.Post.Meta.Reply.Text}}
{{ else }}
{{.Post.Meta.Reply.Url}}
{{ end }}
</a>
</p>
{{ end }}
2022-12-04 14:45:51 +00:00
{{ if .Post.Meta.Bookmark.Url }}
<p style="font-style: italic;filter: opacity(80%);">
Bookmark: <a class="u-bookmark-of h-cite" href="{{.Post.Meta.Bookmark.Url}}">
{{ if .Post.Meta.Bookmark.Text }}
{{.Post.Meta.Bookmark.Text}}
{{ else }}
{{.Post.Meta.Bookmark.Url}}
{{ end }}
</a>
</p>
{{ end }}
<div class="e-content">
{{.Content}}
</div>
2022-09-01 20:01:36 +00:00
<hr>
2022-09-10 11:44:25 +00:00
{{if .Post.ApprovedIncomingWebmentions}}
2022-09-01 20:01:36 +00:00
<h3>
Webmentions
</h3>
<ul>
2022-09-10 11:44:25 +00:00
{{range .Post.ApprovedIncomingWebmentions}}
2022-09-01 20:01:36 +00:00
<li>
<a href="{{.Source}}">
{{if .Title}}
{{.Title}}
{{else}}
{{.Source}}
{{end}}
</a>
</li>
{{end}}
</ul>
{{end}}
</div>