cloudhead / toto

the 10 second blog-engine for hackers
MIT License
1.49k stars 244 forks source link

Added url suffix option #102

Open shameerc opened 13 years ago

shameerc commented 13 years ago

When I tried to port my wordpress blog to toto, the url format became a problem for me, where all my urls ended with .html and toto (as I believed) didn't support custom urls. So I changed the path in such a way that it can have any extensions

note

Added additional property for url suffix in config class.

ixti commented 13 years ago

why not use 301 redirections instead?

shameerc commented 13 years ago

ofcourse that will do. what I sould suggest is to have bit more flexible url, to support the url scheme of user's choice. Does that make sense ?

ixti commented 13 years ago

I agree, flexible url scheme is a good idea.

shameerc commented 13 years ago

I was thinking of adding the whole url pattern in config instead of just parts of it, so that we can have url of any kind and other blogs can be ported to toto without any problem.

ixti commented 13 years ago

yes. I believe it should be possible to allow specify segments like /:year/:month/:day/:slug.html the only problem in "moving" from other blogging software is that basically each post in toto is identified exactly by date and slug, so you don't have as much falexibility as you might want to have :))

shameerc commented 13 years ago

I see. In my case the url scheme was /:year/:month/:slug.html and I made it possible by just changing the file name :). anyway I should appreciate the way it is now