aboutsummaryrefslogtreecommitdiff
path: root/module/output/html.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@hornquist.se>2019-05-02 17:58:07 +0200
committerHugo Hörnquist <hugo@hornquist.se>2019-05-02 17:58:07 +0200
commit4fe953de7b5994a896094cf0d62192559a08967d (patch)
treefa6ec5bdab5a0f1ef02d39e80c6e6ff621c87912 /module/output/html.scm
parentChange function for creating hashtables. (diff)
downloadcalp-4fe953de7b5994a896094cf0d62192559a08967d.tar.gz
calp-4fe953de7b5994a896094cf0d62192559a08967d.tar.xz
work on porting most internal datastructures to scheme equivalents.
Diffstat (limited to 'module/output/html.scm')
-rw-r--r--module/output/html.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/output/html.scm b/module/output/html.scm
index 01736cac..23a7b9ac 100644
--- a/module/output/html.scm
+++ b/module/output/html.scm
@@ -198,7 +198,8 @@
(append (map (td '(class "prev"))
(iota month-start (- prev-month-len month-start)))
(map (td '(class "cur"))
- (map (lambda (d) `(a (@ (href "#" ,(date->string date "~Y-~m-") ,d)
+ (map (lambda (d) `(a (@ (href "#" ,(date->string date "~Y-~m-")
+ ,(when (< d 10) 0) ,d)
(class "hidelink")) ,d))
(iota month-len 1)))
(map (td '(class "next"))