|
@@ -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"))
|