Improve comment mixin
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Yarmo Mackenbach 2020-06-25 10:29:11 +02:00
parent c6616ae9df
commit af5c67f22f
2 changed files with 10 additions and 2 deletions

View File

@ -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))

View File

@ -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))