aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mixins/post.pug4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mixins/post.pug b/src/mixins/post.pug
index a9fd7c4..2e77402 100644
--- a/src/mixins/post.pug
+++ b/src/mixins/post.pug
@@ -4,8 +4,8 @@ mixin post(p, currentUrl)
4 - var from = encodeURIComponent(currentUrl) 4 - var from = encodeURIComponent(currentUrl)
5 - var viewQuery = query && query.view ? query.view : 'compact' 5 - var viewQuery = query && query.view ? query.view : 'compact'
6 - var sortQuery = query && query.sort ? query.sort + (query.t ? '&t=' + query.t : '') : 'hot' 6 - var sortQuery = query && query.sort ? query.sort + (query.t ? '&t=' + query.t : '') : 'hot'
7 article(class=`post ${p.stickied?"sticky":""}`) 7 article(class=`post`)
8 div.post-container(class=`${query.view}`) 8 div.post-container(class=`${query.view} ${p.stickied?"sticky":""}`)
9 div.post-text(class=`${query.view}`) 9 div.post-text(class=`${query.view}`)
10 div.title-container(class=`${query.view}`) 10 div.title-container(class=`${query.view}`)
11 a(class=`${query.view}`, href=`/comments/${p.id}?from=${from}&sort=${sortQuery}&view=${viewQuery}`) 11 a(class=`${query.view}`, href=`/comments/${p.id}?from=${from}&sort=${sortQuery}&view=${viewQuery}`)