hashobject / perun

Programmable static site generator built with Clojure and Boot (HELP NEEDED!)
https://perun.io
Eclipse Public License 1.0
350 stars 38 forks source link

Atom upgrades #163

Closed bhagany closed 7 years ago

bhagany commented 7 years ago

My primary motivation was to get paginated Atom feeds, so that more than 10 items can be retrieved by clients, but also feed pages don't get too large. Along the way, I also addressed some of the FIXME's in atom.clj, upgraded the error reporting, and made good use of content-pre-wrap.

Enabling pagination for atom-feed entailed upgrading paginate as well - it now adds more useful metadata to the generated pages. I've updated the spec document accordingly.

There is one backwards incompatible change for paginate. Where it previously took a prefix option, it now takes a filename-fn. This can be made to do the same thing prefix did, but also allows you to come up with page naming schemes that don't fall within the narrow confines of page-1, page-2, etc.

runnabot commented 7 years ago

Deployed perun/atom-upgrades. View on Runnable. From Runnable

bhagany commented 7 years ago

sigh. I thought this would merge cleanly. I'll fix when I'm able.

bhagany commented 7 years ago

While merging from master, I changed my mind a bit about paginate. Rather than having a filename-fn, I think it's more consistent with other tasks to have a slug-fn, plus out-ext for determining filenames.