Skip to content

Commit c3fbf75

Browse files
Link categories in threadlist on homepage
1 parent 3ac9ec3 commit c3fbf75

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

public/css/nimforum.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,14 @@ $logo-height: $navbar-height - 20px;
143143
white-space: nowrap;
144144
}
145145

146+
.category-link:link,
147+
.category-link:hover,
148+
.category-link:active,
149+
.category-link:visited {
150+
color: $body-font-color;
151+
text-decoration: none;
152+
}
153+
146154
#new-thread {
147155
.modal-container .modal-body {
148156
max-height: none;

src/frontend/category.nim

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ when defined(js):
3939
kstring"0.25rem solid #" & category.color)
4040
))
4141
span(class="category-name"):
42-
text category.name
42+
a(href=makeUri("/c/" & $category.id), class="category-link"):
43+
text category.name
4344
if not compact:
4445
span(class="topic-count"):
4546
text "× " & $category.numTopics

0 commit comments

Comments
 (0)