65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
extends templates/main
|
|
|
|
mixin webmention(item)
|
|
if (!('type' in item))
|
|
p
|
|
if ('title' in item)
|
|
a(href=item.source) !{item.title}
|
|
else
|
|
a(href=item.source) !{item.source}
|
|
if ('author_name' in item)
|
|
| by !{item.author_name}
|
|
if ('date' in item)
|
|
| on !{item.date}
|
|
if ('time' in item)
|
|
| at !{item.time}
|
|
else if (item.type == "comment")
|
|
.comment
|
|
p.quote
|
|
if ('title' in item)
|
|
strong !{item.title}
|
|
br
|
|
if ('content' in item)
|
|
| !{item.content}
|
|
p.sub
|
|
a(href=item.source) Commented
|
|
if ('author_name' in item)
|
|
| by !{item.author_name}
|
|
if ('date' in item)
|
|
| on !{item.date}
|
|
if ('time' in item)
|
|
| at !{item.time} UTC
|
|
|
|
mixin discussionLink(item)
|
|
p
|
|
a(href=item) !{item}
|
|
|
|
block content
|
|
include partials/nav
|
|
|
|
main
|
|
article.longform.h-entry
|
|
h1.p-name !{post.title}
|
|
p.longform__header
|
|
| Posted on
|
|
a(href=post.url datetime="{post.date}").u-url.dt-published !{post.date_formatted}
|
|
| by
|
|
a(href="/" rel="author").p-author.h-card !{post.author}
|
|
|
|
.longform__content.e-content
|
|
| !{post.content}
|
|
|
|
if ('discussion' in post && post.discussion)
|
|
.discussion.subsection
|
|
h2 Join the discussion
|
|
each item in post.discussion
|
|
+discussionLink(item)
|
|
|
|
.webmentions.subsection
|
|
h2 Webmentions
|
|
if post.hasWebmentions
|
|
each item in post.webmentions
|
|
+webmention(item)
|
|
else
|
|
p This post has not been mentioned yet.
|