blob: ccdb7634b5019b4ca8268c67026c2b95e2b7202b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
;; SPDX-License-Identifier: CC-BY-SA-4.0
;; Copyright 2026 bdunahu <bdunahu@operationnull.com>
(define-module (operationnull static)
#:use-module (haunt artifact)
#:use-module (haunt reader commonmark)
#:use-module (haunt html)
#:use-module (haunt builder blog)
#:use-module (operationnull theme)
#:export (static-page))
(define* (static-page page destination title
#:key
(theme main-theme)
(reader commonmark-reader))
"Return a builder procedure that reads FILE into SXML, adjusts it
according to the THEME and serialize to HTML and put it to
build-directory of the site. DESTINATION is a relative resulting file
path."
(lambda (site posts)
(list
(serialized-artifact
destination
(with-layout theme site title page)
sxml->html))))
|