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

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
technicat committed Aug 17, 2023
1 parent c4a2c0d commit 48c30a4
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions hugo.scm
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,26 @@
(f "f|file=s")
(i "i|image")
(d "d|dishes")
(p "p|places")
(v "v|verbose")
. restargs)
(if (not h)
(let ((dishes (read-dishes))
(words (read-words))
(phrases (read-phrases))
(places (read-places)))
(for-each (lambda (word)
(add-word word))
words)
(for-each (lambda (dish)
(add-word (word dish)))
dishes)
(add-words words dishes)
(if i (copy-images))
(if v (print dishes))
(if d (write-dishes dishes))))))
(if d (if v (print dishes)
(write-dishes dishes)))))))

(define (add-words words dishes)
(for-each (lambda (word)
(add-word word))
words)
(for-each (lambda (dish)
(add-word (word dish)))
dishes))

(define (help file)
(print "hugo.scm -o -v -i -h"))
Expand Down Expand Up @@ -125,10 +129,10 @@
(newline out)))))

(define (tag-display tag)
(let ((word #false)) ;(hash-table-get words tag)))
(if word
#"\"~tag ~(english word)\""
#"\"~tag\"")))
(let ((word #false)) ;(hash-table-get words tag)))
(if word
#"\"~tag ~(english word)\""
#"\"~tag\"")))

(define (write-dish-date dish out)
(write-string #"showDate: false" out)
Expand Down

0 comments on commit 48c30a4

Please sign in to comment.