Skip to content

Commit 83764e2

Browse files
committed
feat: make tags clickable in posts
1 parent ca2f8b0 commit 83764e2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

templates/post.typ

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@
6161
let tags-view = if tags.len() > 0 {
6262
html.div(class: "flex flex-wrap justify-center gap-2 my-4")[
6363
#for tag in tags {
64-
html.span(
64+
html.a(
65+
href: "/tags/" + tag,
6566
class: "px-2 py-1 text-sm bg-surface rounded text-accent",
6667
)[#tag]
6768
}

0 commit comments

Comments
 (0)