Add link flairs

This commit is contained in:
StevenNMeza
2020-12-13 20:53:32 +01:00
parent 77cc346a12
commit 5a602b2b88
5 changed files with 17 additions and 0 deletions
+2
View File
@@ -23,6 +23,8 @@ html
.title
a(href="" + post.url + "")
h2 #{cleanTitle(post.title)}
if post.link_flair_text
span(class="postflair") #{post.link_flair_text}
span(class="domain") (#{post.domain})
p.submitted
span(title="" + toUTCString(post.created) + "") submitted #{timeDifference(post.created)} by
+4
View File
@@ -84,10 +84,14 @@ 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}
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}
span (#{link.domain})
.meta
p.submitted submitted