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 10, 2023
1 parent 320e5e8 commit 4415f45
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hugo.scm
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
(words (read-words))
(phrases (read-phrases))
(places (read-places)))
(for-each (lambda (word)
(add-word word))
words)
(if i (copy-images))
(if v (print dishes))
(if o (write-dishes dishes))))))
Expand All @@ -35,6 +38,9 @@

(define words (make-hash-table))

(define (add-word word)
(hash-table-put! words (cantonese word) word))

(define (copy-images)
(copy-directory* "assets/images" "../hugodimsum/assets/images" :if-exists :supersede))

Expand Down

0 comments on commit 4415f45

Please sign in to comment.