Browse Source

Make sure to keep previous tags

master
wes 9 years ago
parent
commit
15f61d7957
  1. 15
      api.rkt

15
api.rkt

@ -416,10 +416,16 @@
(add-tag! post (to-tag-string tags))
tags])]
[tags
(add-tag! post (to-tag-string tags))
tags]))
; For adding tags from the shell
(define all-tags #f)
(match (get-tags post)
[#f (set! all-tags tags)
(add-tag! post (to-tag-string tags))]
[more-tags
(set! all-tags (append more-tags tags))
(add-tag! post (to-tag-string all-tags))])
all-tags]))
; For adding tags to the environment, only for testing
(define (add-tag-env post tag)
(let ([current-tags (get-current-tag post)]
[tag-set!
@ -451,7 +457,6 @@
[post (cadr post-file)]
[categories (get-categories post)]
[tags (check-tags post)])
(displayln current-tags)
(match (git-href post #f)

Loading…
Cancel
Save