Skip to content

Commit d54df75

Browse files
wqLink categories in threadlist on homepage
1 parent 3ac9ec3 commit d54df75

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

public/css/nimforum.scss

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

146+
.category-name {
147+
a:link,
148+
a:hover,
149+
a:active,
150+
a:visited {
151+
color: $body-font-color;
152+
text-decoration: none;
153+
}
154+
}
155+
146156
#new-thread {
147157
.modal-container .modal-body {
148158
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)):
43+
text category.name
4344
if not compact:
4445
span(class="topic-count"):
4546
text "× " & $category.numTopics

0 commit comments

Comments
 (0)