Explorar el Código

Simple fix to find-by-date, TODO updates.

Brit Butler hace 14 años
padre
commit
6a1e793016
Se han modificado 2 ficheros con 3 adiciones y 5 borrados
  1. 2 4
      TODO
  2. 1 1
      static/posts.lisp

+ 2 - 4
TODO

@@ -18,12 +18,10 @@ TODO:
18 18
 ;; identical between the static and dynamic backend?
19 19
 ;; indexes should be id/name, title + posts. rewrite indices to use them.
20 20
 ;;; posts
21
-;; Make find-by-date, post-url not suck.
22
-;; -- re: find-by-date, aside from the subseq+string= grossness, the posts it
23
-;; -- returns are not in reverse chronological order. Fix it!
24
-;; -- re: post-url, improve escaping.
21
+;; post-url, improve escaping.
25 22
 
26 23
 ;;;; PLUGINS
24
+;;;; add activate-plugin, deactivate-plugin, :active-plugins?
27 25
 ;;;; implement: analytics, crossposting, disqus, mathjax, pygments, recaptcha, s3
28 26
 ;;;; support input or output dirs being git repos + have git hooks?
29 27
 ;;; import

+ 1 - 1
static/posts.lisp

@@ -52,7 +52,7 @@
52 52
             (when (and (= year (local-time:timestamp-year date))
53 53
                        (= month (local-time:timestamp-month date)))
54 54
               (push post results))))
55
-    results))
55
+    (sort results #'local-time:timestamp> :key #'post-date)))
56 56
 
57 57
 (defmethod find-by-range (start end)
58 58
   (if (> start end)