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 8fa75b7 commit a6f7de1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions hugo.scm
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
(let ((dishes (read-dishes))
(words (read-words))
(phrases (read-phrases))
(places (read-places)))
(places (read-places)))
(if i (copy-images))
(if v (print dishes))
(if o (write-dishes dishes))))))
Expand Down Expand Up @@ -247,11 +247,17 @@
(define (read-words)
(let ((files (read-json "assets/json/words.json")))
(concatenate (map (lambda (file)
(vector->list (read-json #"assets/json/words/~|file|.json")))
files))))
(vector->list (read-json #"assets/json/words/~|file|.json")))
files))))

(define (read-places)
(read-json "assets/json/countries.json"))
(let ((files (read-json "assets/json/countries.json")))
(concatenate (map (lambda (file)
(read-json #"assets/json/place/~|file|.json"))
files))))

(define (read-phrases)
(read-json "assets/json/phrases.json"))
(let ((files (read-json "assets/json/phrases.json")))
(concatenate (map (lambda (file)
(read-json #"assets/json/phrases/~|file|.json"))
files))))

0 comments on commit a6f7de1

Please sign in to comment.