diff options
author | David Thompson <dthompson2@worcester.edu> | 2015-04-13 19:24:20 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2015-04-13 19:24:20 -0400 |
commit | 3614b3e9b91c17773af75832f8fbafc24d105898 (patch) | |
tree | dc977d7a64b921cd76d523e9f777a9c9ba0b7248 | |
parent | 87aaae2585f780fb2cb538f3b890107078e79a1c (diff) |
post: Rename post->time to post-time.
* haunt/post.scm (post->time): Rename to...
(post-time): ...this.
-rw-r--r-- | haunt/post.scm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/haunt/post.scm b/haunt/post.scm index 964ae6f..08c8872 100644 --- a/haunt/post.scm +++ b/haunt/post.scm @@ -59,14 +59,14 @@ char-set:whitespace)) "-")) -(define (post->time post) +(define (post-time post) (date->time-utc (post-ref post 'date))) (define (posts/reverse-chronological posts) "Returns POSTS sorted in reverse chronological order." (sort posts (lambda (a b) - (time>? (post->time a) (post->time b))))) + (time>? (post-time a) (post-time b))))) (define (posts/group-by-tag posts) "Return an alist of tags mapped to the posts that used them." |