diff options
author | Case Duckworth | 2023-07-23 11:21:58 -0500 |
---|---|---|
committer | Case Duckworth | 2023-07-23 11:21:58 -0500 |
commit | 3f39d53bc165c8f38e25a3a04ebd96f2148fa234 (patch) | |
tree | 3c45a9d3a072a69bd0d441683430c90ba42555f1 /boudin.scm | |
parent | Use slugs (diff) | |
download | boudin-3f39d53bc165c8f38e25a3a04ebd96f2148fa234.tar.gz boudin-3f39d53bc165c8f38e25a3a04ebd96f2148fa234.zip |
Etc
Diffstat (limited to 'boudin.scm')
-rwxr-xr-x | boudin.scm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/boudin.scm b/boudin.scm index f746f24..28727ff 100755 --- a/boudin.scm +++ b/boudin.scm | |||
@@ -22,6 +22,10 @@ boudin --- a little static site generator | |||
22 | (sxml-serializer) | 22 | (sxml-serializer) |
23 | (sxpath)) | 23 | (sxpath)) |
24 | 24 | ||
25 | ;;; Utilities | ||
26 | |||
27 | (define el sxml->html) | ||
28 | |||
25 | ;;; Transformations | 29 | ;;; Transformations |
26 | ;; A static site generator can be thought of largely as two sets of | 30 | ;; A static site generator can be thought of largely as two sets of |
27 | ;; transformations: one transforming given input content to output content, and | 31 | ;; transformations: one transforming given input content to output content, and |
@@ -362,9 +366,10 @@ boudin --- a little static site generator | |||
362 | id: (page-url pg) | 366 | id: (page-url pg) |
363 | updated: (page-guess-updated pg) | 367 | updated: (page-guess-updated pg) |
364 | ;;published: | 368 | ;;published: |
365 | content: | 369 | content: (make-content |
366 | `(atom:content (@ (type "html")) | 370 | (sxml->html (page-dest pg)) |
367 | ,(cdr (page-dest pg))))) | 371 | type: html) |
372 | #;`(atom:content "foo"))) | ||
368 | pages)))))) | 373 | pages)))))) |
369 | 374 | ||
370 | ;;; Publishing | 375 | ;;; Publishing |