Ensure that index.html points to the most recent index page
This commit is contained in:
parent
cc0271b319
commit
96ae19b146
1 changed files with 4 additions and 1 deletions
|
@ -42,7 +42,10 @@
|
||||||
(publish ctype))
|
(publish ctype))
|
||||||
(do-subclasses (itype index)
|
(do-subclasses (itype index)
|
||||||
(publish itype))
|
(publish itype))
|
||||||
(let ((recent-posts (first (find-all 'numeric-index))))
|
(let ((recent-posts (reduce #'(lambda (a b)
|
||||||
|
(if (< (index-name a) (index-name b))
|
||||||
|
a b))
|
||||||
|
(find-all 'numeric-index))))
|
||||||
(update-symlink "index.html" (page-url recent-posts)))))
|
(update-symlink "index.html" (page-url recent-posts)))))
|
||||||
|
|
||||||
(defgeneric deploy (staging)
|
(defgeneric deploy (staging)
|
||||||
|
|
Loading…
Add table
Reference in a new issue