diff options
author | PortableProgrammer <[email protected]> | 2025-01-04 17:37:47 +0000 |
---|---|---|
committer | PortableProgrammer <[email protected]> | 2025-01-04 17:37:47 +0000 |
commit | 0cfd4af340ee14fa92d676b54b25ee66c4d4824c (patch) | |
tree | 26beac7f433d1825ecbdb8fb8cf860656844241e | |
parent | fc5a28a9c3ea695b5b0f5c65e0c8a5ad5c83dec1 (diff) |
Tweak sticky background in card view
-rw-r--r-- | src/mixins/post.pug | 4 |
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}`) |