jaspervdj/hakyll — pull request #315 by pbrisbin (2014-12-05 22:44:50+00:00)
Title: Helpers for prettier links by relying on auto-index

Add a route and context helper to make it easier to have "pretty" links.

For example, `route indexRoute` makes:

`posts/foo/bar/2015-01-01-some_post.md`

Route to:

`posts/foo/bar/some_post/index.html`

Then, `indexedUrlField "url"` makes:

`$url$`

Show:

`posts/foo/bar/some_post/`

In your template.

So long as auto-index is enabled on your server, visiting this URL will render the generated index.html.