···3333 :root { font-family: InterVariable, sans-serif; }
3434}
35353636+html {
3737+ scroll-behavior: smooth;
3838+}
3939+3640body {
3741 overflow-x: hidden;
3842 background-color: var(--bg-color);
···5054.info-container a,
5155.comment-info-container a,
5256.sort-opts a,
5353-.more a {
5757+.more a
5858+{
5459 text-decoration: none;
5560}
5661···565570.about {
566571 padding-bottom: 20px;
567572}
573573+574574+a.nav-link {
575575+ color: var(--text-color-muted);
576576+}
+9-2
src/views/comments.pug
···5959 hr
60606161 div.comments-container
6262- each child in comments
6363- +comment(child, true, post.id)
6262+ - var total = comments.length
6363+ each child, index in comments
6464+ - var next_idx = index + 1
6565+ - var prev_idx = index - 1
6666+ - var next_com = next_idx < total ? comments[next_idx] : null
6767+ - var prev_com = prev_idx >= 0 ? comments[prev_idx] : null
6868+ - var next_id = next_com ? next_com.data.id : null
6969+ - var prev_id = prev_com ? prev_com.data.id : null
7070+ +comment(child, true, post.id, next_id, prev_id)
+8-2
src/views/single_comment_thread.pug
···1616 div
1717 p nothing to see here, this thread was shadow-banned?
1818 else
1919- each comment in comments
2020- +comment(comment, true, parent_id)
1919+ each comment, index in comments
2020+ - var next_idx = index + 1
2121+ - var prev_idx = index - 1
2222+ - var next_com = next_idx < total ? comments[next_idx] : null
2323+ - var prev_com = prev_idx >= 0 ? comments[prev_idx] : null
2424+ - var next_id = next_com ? next_com.data.id : null
2525+ - var prev_id = prev_com ? prev_com.data.id : null
2626+ +comment(comment, true, parent_id, next_idx, prev_idx)
2127