Publ: Development Blog

News and updates about Publ

v0.3.18, now with better asset management!

Posted Wednesday, February 27 at 9:38 PM (5 years ago)

I’ve just released v0.3.18, with the following changes:

  • Add date grouping properties to entry
  • Add a pages property to view
  • Provide the current category object to the error handler
  • Support linking to non-image/non-entry local files
  • Added, then removed, some performance micro-optimizations that only caused problems

More details about the major changes below!

Update: I released a hotfix as 0.3.18.1 because there was a last-minute bug that snuck in while I was trying to silence a new pylint error. Oops.

v0.3.17

Posted Friday, February 22 at 5:01 PM (5 years ago)

Just some little fixes that I put in for the sake of the day job:

  • Fixed the way that get_view() et al parse the parameters, so now you can actually search for entry_type='' or entry_type_not=''
  • Fixed the sort order of recursive category.subcats

Publ v0.3.16

Posted Wednesday, February 20 at 9:45 PM (5 years ago)

Just another minor release of Publ! Mostly bugfixes. Here’s what’s new:

  • Fixed an issue with HTML <img> rewriting with non-lowercase attribute names
  • Fixed a bug with missing entries causing Publ to die when it tried to remove them from the index
  • Added category.root
  • Some code cleanups, especially removing some unneeded backwards compatibility shims for unsupported versions of Python
  • Redirect-To will now resolve link targets

Relatedly to category.root, I’d neglected to add category.breadcrumb to the manual when that functionality went in, and I’ve also added some usage examples, including something useful for fancy navigation bars.

An early-alpha Movable Type importer

Posted Wednesday, February 20 at 3:42 PM (5 years ago)

For those folks who want to import their content from Movable Type over to Publ, I’ve finally gotten around to writing an importer. Currently it only attempts to convert entry content and category metadata, and only using SQLite-formatted database dumps.

See its README.md for the (incredibly rough) usage instructions.

Eventually I want to try to automatically convert templates from MT’s scripting language to Jinja-Publ templates, although there’s a bunch of stuff that’s going to be difficult to port across and a lot of stuff is just plain not feasible to even try, so don’t expect that to become a major thing any time soon.

v0.3.15 Released (finally!)

Posted Wednesday, February 13 at 6:20 PM (5 years ago)

It’s been a while since I’ve had a chance to work on Publ, but the great thing is that I actually had a reason to work on it for my day job. Which is to say I’m finally being paid to work on Publ. ;)

Changes since 0.3.14:

  • Add requirement for Arrow 0.13.0 (issue 41)
  • Fix a dumb tpyo that was the cause of issue 158
  • Don’t rewrite DRAFT files; fixes 137
  • Move sample-site files back to the library repo rather than in the doc repo
  • Fix the way we map malformed category URLs (issue 156)
  • Update upstream library versions
  • Move version number to publ module
  • Allow empty slug-text in entry route (fixes 161)
  • Process HTML entries, to finally handle issues 136 and 154.

Some more information about that last one under the cut!