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