mirror of
https://github.com/Hilbis/Hilbish
synced 2025-07-01 00:32:03 +00:00
fix: links for sidebar
This commit is contained in:
parent
b02c521ff5
commit
06d191f09a
@ -7,6 +7,7 @@ import lustre/element
|
||||
import lustre/element/html
|
||||
import lustre/ssg/djot
|
||||
|
||||
import conf
|
||||
import jot
|
||||
import post
|
||||
|
||||
@ -50,7 +51,7 @@ pub fn page(p: post.Post, doc_pages_list) -> element.Element(a) {
|
||||
[],
|
||||
list.map(doc_pages_list, fn(post: #(String, post.Post)) {
|
||||
html.li([attribute.class("mb-2")], [
|
||||
html.a([attribute.href(post.0)], [
|
||||
html.a([attribute.href(conf.base_url_join(post.0))], [
|
||||
element.text({ post.1 }.title),
|
||||
]),
|
||||
])
|
||||
|
Loading…
x
Reference in New Issue
Block a user