Render link flairs

This commit is contained in:
StevenNMeza
2020-12-21 12:33:43 +01:00
parent 5057018fb6
commit fb202af1e5
6 changed files with 35 additions and 23 deletions
+2 -4
View File
@@ -84,14 +84,12 @@ html
if link.is_self_link
a(href="" + link.permalink + "")
h2(class="" + (link.stickied ? 'green' : '') + "") #{cleanTitle(link.title)}
if link.link_flair_text
span(class="postflair") #{link.link_flair_text}
!= link.link_flair
span (#{link.domain})
else
a(href="" + link.url + "")
h2(class="" + (link.stickied ? 'green' : '') + "") #{cleanTitle(link.title)}
if link.link_flair_text
span(class="postflair") #{link.link_flair_text}
!= link.link_flair
span (#{link.domain})
.meta
p.submitted submitted