|
@@ -45,14 +45,14 @@
|
45
|
45
|
"Return an index of all CONTENT matching the given TAG."
|
46
|
46
|
(flet ((valid-p (obj) (member tag (content-tags obj) :test #'string=)))
|
47
|
47
|
(make-instance 'tag-index :id tag
|
48
|
|
- :posts (remove-if-not valid-p content)
|
|
48
|
+ :posts (remove-if-not #'valid-p content)
|
49
|
49
|
:title (format nil "Posts tagged ~a" tag))))
|
50
|
50
|
|
51
|
51
|
(defun index-by-month (month content)
|
52
|
52
|
"Return an index of all CONTENT matching the given MONTH."
|
53
|
53
|
(flet ((valid-p (obj) (search month (content-date obj))))
|
54
|
54
|
(make-instance 'date-index :id month
|
55
|
|
- :posts (remove-if-not valid-p content)
|
|
55
|
+ :posts (remove-if-not #'valid-p content)
|
56
|
56
|
:title (format nil "Posts from ~a" month))))
|
57
|
57
|
|
58
|
58
|
(defun index-by-n (i content &optional (step 10))
|