diff --git a/views/post.pug b/views/post.pug index 0349b65..1a6426a 100644 --- a/views/post.pug +++ b/views/post.pug @@ -16,7 +16,11 @@ mixin webmention($item) else if ($item['type'] == "comment") .comment p.quote - | !{$item['title']} + 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)) diff --git a/views/reply.pug b/views/reply.pug index 5d11c93..1cbfa92 100644 --- a/views/reply.pug +++ b/views/reply.pug @@ -16,7 +16,11 @@ mixin webmention($item) else if ($item['type'] == "comment") .comment p.quote - | !{$item['title']} + 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))