|
From: seanh <sea...@gm...> - 2009-07-17 17:50:45
|
On Fri, Jul 17, 2009 at 6:36 PM, seanh<sea...@gm...> wrote: > > PyBlosxom could do slugs using a #slug metadata line in each post > file. A slight problem is that you're expecting the user to come up > with unique slugs, but you have no way of telling them, when they're > just typing the slug in their text editor, that it's not unique. > Another problem is that when a visitor requests a slug PyBlosxom would > have to inspect the contents of every post file, so clearly some sort > of index or cache is going to be needed. > It occurred to me after writing this that the filename (minus extension) is equivalent to a slug so you wouldn't need to add a metadata line. Now to imitate wordpress permalinks we'd have to be able to combine pyblosxom's date-based URLs with filenames (without categories) to form URLs like: /2009/Jul/17/filename. |