diff options
| author | Jan Tuomi <jan@jantuomi.fi> | 2025-12-27 13:23:16 +0200 |
|---|---|---|
| committer | Jan Tuomi <jan@jantuomi.fi> | 2025-12-27 13:50:23 +0200 |
| commit | 8bd7c65290af536307914b200bdb11cd527c64fd (patch) | |
| tree | b26f137f1bdf3b139b898ee3b1e92b70a0f678b9 /main.scm | |
| parent | 3e56647cf96dee4f5009cf8a813668e23230eefc (diff) | |
Update style
Diffstat (limited to 'main.scm')
| -rw-r--r-- | main.scm | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -13,7 +13,7 @@ (chicken irregex) (chicken sort) (chicken port) - (only srfi-13 string-join) + (only srfi-13 string-join string-prefix?) srfi-18 matchable json @@ -286,7 +286,9 @@ (define (to-li post) (printf "[info] indexing post ") - (define title (assocdr "title" post)) + (define title-raw (assocdr "title" post)) + ;; strip quotes + (define title (if (string-prefix? "\"" title-raw) (substring title-raw 1 (- (string-length title-raw) 1)) title-raw)) (printf "\"~A\"~%" title) (define date (assocdr "date" post)) (define kind (assocdr "kind" post)) @@ -353,7 +355,7 @@ (define work-md-path (make-pathname work-dir "_linklog.md")) (define work-html-path (make-pathname work-dir "_linklog.html")) (define out-path (make-pathname (list out-dir) "linklog.html")) - + (with-output-to-file work-md-path (λ () (print out-md))) |
