|
@@ -28,7 +28,7 @@
|
28
|
28
|
|
29
|
29
|
(defun all-months ()
|
30
|
30
|
"Retrieve a list of all months with published posts."
|
31
|
|
- (sort (remove-duplicates (mapcar (lambda (x) (get-month (post-date x)))
|
|
31
|
+ (sort (remove-duplicates (mapcar (lambda (x) (get-month (content-date x)))
|
32
|
32
|
(hash-table-values *content*)) :test #'string=)
|
33
|
33
|
#'string>))
|
34
|
34
|
|
|
@@ -51,7 +51,7 @@
|
51
|
51
|
|
52
|
52
|
(defun index-by-month (month posts)
|
53
|
53
|
"Return an index of all POSTS matching the given MONTH."
|
54
|
|
- (let ((content (remove-if-not (lambda (post) (search month (post-date post)))
|
|
54
|
+ (let ((content (remove-if-not (lambda (post) (search month (content-date post)))
|
55
|
55
|
posts)))
|
56
|
56
|
(make-instance 'date-index :id month
|
57
|
57
|
:posts content
|
|
@@ -67,7 +67,7 @@
|
67
|
67
|
|
68
|
68
|
(defun render-indices ()
|
69
|
69
|
"Render the indices to view posts in groups of size N, by month, and by tag."
|
70
|
|
- (let ((posts (by-date (hash-table-values *content*))))
|
|
70
|
+ (let ((posts (by-date (find-all 'post))))
|
71
|
71
|
(dolist (tag (all-tags))
|
72
|
72
|
(let ((index (index-by-tag tag posts)))
|
73
|
73
|
(write-page (page-path index) (render-page index))))
|