@@ -36,17 +36,15 @@ ◊html$-page-body-close[] }) ;; Grabs all the articles+notes from the cache and writes out all the blog page files (define (build-blog) - (spell-of-summoning!) ; Turn on the DB - - (define articles+notes (slice-at (list/articles+notes 'listing_full_html #:series #f) per-page)) - (define pagecount (length articles+notes)) + (define arts-n-notes (slice-at (listing-htmls (articles+notes 'full #:series #f)) per-page)) + (define pagecount (length arts-n-notes)) (for ([pagenum (in-range 1 (+ 1 pagecount))] - [page (in-list articles+notes)]) + [page (in-list arts-n-notes)]) (define filename (format "blog-pg~a.html" pagenum)) (displayln (format "Writing: ~a" filename)) (display-to-file (blog-page (apply string-append page) pagenum pagecount) filename #:mode 'text