summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tissue.scm10
1 files changed, 6 insertions, 4 deletions
diff --git a/tissue.scm b/tissue.scm
index 65df566..c7f3f5b 100644
--- a/tissue.scm
+++ b/tissue.scm
@@ -33,12 +33,14 @@
("jgart")
("Zachary Sloan" "zach" "zachs" "zsloan"))
#:indexed-documents (append (map (lambda (filename)
- (indexed-document (cut read-gemtext-issue filename)
- (string-append "/" (replace-extension filename "html"))))
+ (slot-set (read-gemtext-issue filename)
+ 'web-uri
+ (string-append "/" (string-remove-suffix ".gmi" filename))))
(gemtext-files-in-directory "issues"))
(map (lambda (filename)
- (indexed-document (cut read-gemtext-document filename)
- (string-append "/" (replace-extension filename "html"))))
+ (slot-set (read-gemtext-document filename)
+ 'web-uri
+ (string-append "/" (string-remove-suffix ".gmi" filename))))
(gemtext-files-in-directory "topics")))
#:web-css "/style.css"
#:web-files (cons* (file "style.css"