Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Update hugo.scm
Browse files Browse the repository at this point in the history
  • Loading branch information
technicat committed Aug 8, 2023
1 parent 38bdfa8 commit 8fa75b7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions hugo.scm
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
(places (read-places)))
(if i (copy-images))
(if v (print dishes))
(if o (write-dishes (reverse dishes)))))))
(if o (write-dishes dishes))))))

(define (help file)
(print "hugo.scm -o -v -i -h"))
Expand Down Expand Up @@ -245,7 +245,10 @@
(read-json "assets/json/categories.json"))

(define (read-words)
(read-json "assets/json/words.json"))
(let ((files (read-json "assets/json/words.json")))
(concatenate (map (lambda (file)
(vector->list (read-json #"assets/json/words/~|file|.json")))
files))))

(define (read-places)
(read-json "assets/json/countries.json"))
Expand Down

0 comments on commit 8fa75b7

Please sign in to comment.