Click on tag from a single note
This commit is contained in:
parent
25e29afcbb
commit
845ca2acb8
@ -75,7 +75,7 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
|
||||
span("space-x-2") {
|
||||
tags.forEach {
|
||||
a(href = "?tag=$it", classes = "tag") {
|
||||
span { +"#$it" }
|
||||
+"#$it"
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -108,9 +108,11 @@ class NoteView(staticFileResolver: StaticFileResolver) : View(staticFileResolver
|
||||
div("container mx-auto p-4") {
|
||||
div("flex items-center justify-between mb-4") {
|
||||
h1("text-3xl fond-bold underline") { +note.meta.title }
|
||||
span {
|
||||
span("space-x-2") {
|
||||
note.meta.tags.forEach {
|
||||
span("tag ml-2") { +"#$it" }
|
||||
a(href = "/notes?tag=$it", classes = "tag") {
|
||||
+"#$it"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user