|
|
|
@ -16,6 +16,13 @@
@@ -16,6 +16,13 @@
|
|
|
|
|
;; along with this program. If not, see <https://www.gnu.org/licenses/>. |
|
|
|
|
|
|
|
|
|
(import scss) |
|
|
|
|
(import (chicken string)) |
|
|
|
|
|
|
|
|
|
(define (path-with-build-time path suffix) |
|
|
|
|
(string-translate* path |
|
|
|
|
`((,suffix . ,(string-intersperse |
|
|
|
|
`("." ,(number->string build-time) ,suffix) |
|
|
|
|
""))))) |
|
|
|
|
|
|
|
|
|
(define (clean-tpl |
|
|
|
|
page-title |
|
|
|
@ -40,7 +47,8 @@
@@ -40,7 +47,8 @@
|
|
|
|
|
`(meta ,(append '(@) args))) page-meta) |
|
|
|
|
|
|
|
|
|
,(map (lambda (l) |
|
|
|
|
`(link (@ (rel "stylesheet") (href ,l)))) |
|
|
|
|
`(link (@ (rel "stylesheet") |
|
|
|
|
(href ,(path-with-build-time l ".css"))))) |
|
|
|
|
page-styles) |
|
|
|
|
|
|
|
|
|
(title ,page-title) |
|
|
|
@ -51,4 +59,9 @@
@@ -51,4 +59,9 @@
|
|
|
|
|
(body |
|
|
|
|
,page-content |
|
|
|
|
|
|
|
|
|
,(map (lambda (l) `(script (@ (src ,l) (type "text/javascript")) " ")) page-scripts)))) |
|
|
|
|
,(map |
|
|
|
|
(lambda (l) |
|
|
|
|
`(script (@ (src ,(path-with-build-time l ".js")) |
|
|
|
|
(type "text/javascript")) |
|
|
|
|
" ")) |
|
|
|
|
page-scripts)))) |
|
|
|
|