+2
-2
src/mixins/post.pug
+2
-2
src/mixins/post.pug
···
4
4
- var from = encodeURIComponent(currentUrl)
5
5
- var viewQuery = query && query.view ? query.view : 'compact'
6
6
- var sortQuery = query && query.sort ? query.sort + (query.t ? '&t=' + query.t : '') : 'hot'
7
-
article(class=`post ${p.stickied?"sticky":""}`)
8
-
div.post-container(class=`${query.view}`)
7
+
article(class=`post`)
8
+
div.post-container(class=`${query.view} ${p.stickied?"sticky":""}`)
9
9
div.post-text(class=`${query.view}`)
10
10
div.title-container(class=`${query.view}`)
11
11
a(class=`${query.view}`, href=`/comments/${p.id}?from=${from}&sort=${sortQuery}&view=${viewQuery}`)