yarmo.eu/views/notes_post.pug
Yarmo Mackenbach dcdaa3fc25
All checks were successful
continuous-integration/drone/push Build is passing
Experimental support for webmentions
2020-06-16 00:54:04 +02:00

35 lines
1.0 KiB
Plaintext

extends layout
mixin webmention($item)
p
a(href="{$item['source']}") !{$item['title']}
| by !{$item['author_name']} on !{$item['date']} at !{$item['time']}
block content
header
nav
a(href="/about") about me
| >
a(href="/notes") notes
| > !{$post['slug']}
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']}
.webmentions
h2 Webmentions
if ($post['hasWebmentions'])
each $item in $post["webmentions"]
+webmention($item)
else
p This post has not been mentioned yet.