Explorar el Código

Stick with indices rendering all content rather than having content types control their inclusion at this time.

Brit Butler hace 12 años
padre
commit
686aaa2941
Se han modificado 1 ficheros con 7 adiciones y 7 borrados
  1. 7 7
      src/indices.lisp

+ 7 - 7
src/indices.lisp

@@ -66,19 +66,19 @@
66 66
                             :title "Recent Posts"))
67 67
 
68 68
 (defun render-indices ()
69
-  "Render the indices to view posts in groups of size N, by month, and by tag."
70
-  (let ((posts (by-date (find-all 'post))))
69
+  "Render the indices to view content in groups of size N, by month, and by tag."
70
+  (let ((results (by-date (hash-table-values *content*))))
71 71
     (dolist (tag (all-tags))
72
-      (let ((index (index-by-tag tag posts)))
72
+      (let ((index (index-by-tag tag results)))
73 73
         (write-page (page-path index) (render-page index))))
74 74
     (dolist (month (all-months))
75
-      (let ((index (index-by-month month posts)))
75
+      (let ((index (index-by-month month results)))
76 76
         (write-page (page-path index) (render-page index))))
77
-    (dotimes (i (ceiling (length posts) 10))
78
-      (let ((index (index-by-n i posts)))
77
+    (dotimes (i (ceiling (length results) 10))
78
+      (let ((index (index-by-n i results)))
79 79
         (write-page (page-path index)
80 80
                     (render-page index nil
81 81
                                  :prev (and (plusp i) i)
82
-                                 :next (and (< (* (1+ i) 10) (length posts))
82
+                                 :next (and (< (* (1+ i) 10) (length results))
83 83
                                             (+ 2 i)))))))
84 84
   (update-symlink "index.html" "1.html"))