summary refs log tree commit diff stats
path: root/boudin.site.scm
diff options
context:
space:
mode:
Diffstat (limited to 'boudin.site.scm')
-rw-r--r--boudin.site.scm46
1 files changed, 46 insertions, 0 deletions
diff --git a/boudin.site.scm b/boudin.site.scm new file mode 100644 index 0000000..ee94b9b --- /dev/null +++ b/boudin.site.scm
@@ -0,0 +1,46 @@
1(declare (module (boudin site))
2 (export site-author
3 site-build-time
4 site-config
5 site-host
6 site-name
7 site-date-formats
8 site-output
9 site-rights
10 site-sort)
11 (import (boudin util)
12 (chicken time posix)))
13
14;; Configurables
15
16(define site-sort
17 (make-parameter identity))
18
19(define site-name
20 (make-parameter "a boudin site"))
21
22(define site-host
23 (make-parameter "example.com"))
24
25(define site-author
26 (make-parameter "nobody"))
27
28(define site-rights
29 (make-parameter
30 (delay (string-append "(C) " (site-author)))))
31
32(define site-output
33 (make-parameter "out/"))
34
35(define site-config
36 (make-parameter "config.scm"))
37
38(define site-date-formats
39 (make-parameter '("%Y-%m-%d"
40 "%d/%m/%Y")))
41
42;; State variables
43
44(define site-build-time
45 (make-parameter
46 (time->string (seconds->utc-time) "%FT%TZ")))