summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac2022-04-06 14:33:30 +0530
committerArun Isaac2022-04-06 14:33:30 +0530
commit6e7c6c2fc67c3022e0313f53b2e3ce714bec92d8 (patch)
treeddf0bd5ec42db9e392210b43f91420e131c36ed0
parent910841af66350ca263f6069d68b7f1c1ab44af98 (diff)
downloadgn-gemtext-6e7c6c2fc67c3022e0313f53b2e3ce714bec92d8.tar.gz
tissue: Add #:web-files.
* tissue.scm (#:web-files): New setting.
-rw-r--r--tissue.scm17
1 files changed, 16 insertions, 1 deletions
diff --git a/tissue.scm b/tissue.scm
index 6e158c6..25fc2dc 100644
--- a/tissue.scm
+++ b/tissue.scm
@@ -13,4 +13,19 @@
("acenteno")
("jgart")
("zsloan"))
- #:web-css "/style.css")
+ #:web-css "/style.css"
+ #:web-files (cons* (file "style.css"
+ (copier "style.css"))
+ (file "index.html"
+ (skribe-exporter "index.skb"))
+ (file "team.html"
+ (skribe-exporter "team.skb"))
+ (append (tag-pages)
+ (filter-map (lambda (filename)
+ (and (string-suffix? ".gmi" filename)
+ (not (string=? (basename filename)
+ "README.gmi"))
+ (file (replace-extension filename "html")
+ (gemtext-exporter filename
+ (gemtext-reader)))))
+ (git-tracked-files)))))