Pretty URL's and Article Links

51 views
Skip to first unread message

Ryan

unread,
Dec 7, 2011, 1:18:20 AM12/7/11
to middleman-users
My question is about pretty URLs. I've enabled the directory_index
feature in config.rb. I'm curious, now that I've done this, ideally,
URLs that are generated when the site is complied or viewed would
point to the "slug" without the .html extension.

For instance, I set up the middleman-blog and list out my article
archives. Right now the URL that is created from article.url shows
the extension.

So /posts/my-article.html is the link. My hope was that it would be /
posts/my-article/.

I know that this doesn't happen by default, but I'm wondering if there
are any thoughts on how to accomplish this sort of thing. Of course,
I could be crazy and this could be a total waste on a very small
issue :)

I'm really getting into Middleman. It's a great app, thank you so much
for your work!

Reply all
Reply to author
Forward
0 new messages