summary refs log tree commit diff
diff options
context:
space:
mode:
authorArun Isaac2022-09-19 02:13:21 +0530
committerArun Isaac2022-09-19 02:13:21 +0530
commitba2cde414865b86bd062591109797ac1738fb1d8 (patch)
tree26f975ccfc6218724d8ea48bffd7ca98ef63c65b
parent4450a52275907043a5a05d0f3c7b67fd7bcf1003 (diff)
downloadtissue-ba2cde414865b86bd062591109797ac1738fb1d8.tar.gz
tissue-ba2cde414865b86bd062591109797ac1738fb1d8.tar.lz
tissue-ba2cde414865b86bd062591109797ac1738fb1d8.zip
tissue.scm: Copy IBM Plex fonts to built website.
* tissue.scm (#:web-files): Copy IBM Plex fonts.
-rw-r--r--tissue.scm16
1 files changed, 12 insertions, 4 deletions
diff --git a/tissue.scm b/tissue.scm
index 8bef7e7..711e015 100644
--- a/tissue.scm
+++ b/tissue.scm
@@ -13,7 +13,15 @@
                                   (commits-in-current-repository)))
  #:web-files (cons (file "index.html"
                          (skribe-exporter "website/index.skb"))
-                   (filter-map (lambda (filename)
-                                 (file (replace-extension filename "html")
-                                       (gemtext-exporter filename)))
-                               (gemtext-files-in-directory "issues"))))
+                   (append (map (lambda (font-file)
+                                  (file (string-append "fonts/" font-file)
+                                        (copier (string-append (getenv "GUIX_ENVIRONMENT")
+                                                               "/share/fonts/web/" font-file))))
+                                (list "IBMPlexSans-Regular-Latin1.woff2"
+                                      "IBMPlexSans-Bold-Latin1.woff2"
+                                      "IBMPlexMono-Regular-Latin1.woff2"
+                                      "IBMPlexMono-Bold-Latin1.woff2"))
+                           (filter-map (lambda (filename)
+                                         (file (replace-extension filename "html")
+                                               (gemtext-exporter filename)))
+                                       (gemtext-files-in-directory "issues")))))