diff options
author | Ben Sima <ben@bsima.me> | 2020-05-15 12:58:20 -0700 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2020-05-15 12:58:20 -0700 |
commit | 3420022462e7f27ee8821d4192ce86eb157a3af2 (patch) | |
tree | 6544faf1c23eb04028c00341f048f2bf9d159d3c | |
parent | 25431cd8f97313a64826eff6e794598f09b2490b (diff) |
Fix links in tag view, header link, and non-found page
-rw-r--r-- | z.scm | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -224,7 +224,8 @@ NL < '\n' (content "width=device-width, initial-scale=1")))) (style ,*css*) (body - (h1 "z") + (h1 (a (@ (href "/")) + "z")) ,*navbar* ,@body))) @@ -285,11 +286,12 @@ NL < '\n' (respond `((ul ,@(turn (tagged tag) (lambda [id] - `(li (a (@ (href ,(fmt "/node/~a" id))) + `(li (a (@ (href ,(fmt "/node/~a" (id->string id)))) ,(fmt "~a: ~a" (id->string id) (title (load-node id))))))))))] - [_ (respond "not found")])) + [_ (respond '(h1 "not found") + #:title "z - not found")])) (define* (serve #:key (port 8080)) (prn "z") |