atproto pastebin service: https://plonk.li
1mixin post(paste, handle, did)
2 div.post
3 p
4 a(href=`/p/${paste.shortUrl}`).post-link
5 | #{paste.title}
6 p.post-info
7 | by
8 a(href=`/u/${did}`)
9 | @#{handle}
10 | ·
11 | #{timeDifference(now, Date.parse(paste.createdAt))} ago
12 | ·
13 | #{paste.lang}
14 | ·
15 | #{paste.code.split('\n').length} loc
16 | ·
17 a(href=`/p/${paste.shortUrl}/#comments`) #{paste.commentCount} #{pluralize(paste.commentCount, 'comment')}