From 7f996d9c90e7815c1507876dfc733f0c29066474 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Wed, 4 Mar 2020 11:26:26 +0100 Subject: HTML tiny cal fix fragment links. --- module/output/html.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'module') diff --git a/module/output/html.scm b/module/output/html.scm index 6b2f8b6e..74ed2f97 100644 --- a/module/output/html.scm +++ b/module/output/html.scm @@ -268,7 +268,7 @@ (define ((td attr other-date) text) `(td (@ ,attr) (a (@ (href ,(date->string other-date "~Y-~m-~d") - ".html#" ,(date->string other-date "~Y-~m-~d")) + ".html#" ,(date->string (set (day other-date) text) "~Y-~m-~d")) (class "hidelink")) ,text))) @@ -292,7 +292,8 @@ ,@(cdr p))) (map (lambda (d) `((@ (class ,(when (date=? today (set (day date) d)) "today"))) - (a (@ (href "#" ,(date->string date "~Y-~m-~d")) + (a (@ (href "#" ,(date->string (set (day date) d) + "~Y-~m-~d")) (class "hidelink")) ,d))) current)) ;; | 1 2 ... -- cgit v1.2.3