Hi,
Could anyone give a piece of advice on what is best
practice to realise own posts interlinking in Hakyll?
As Hakyll uses Markdown, I looked at what other popular
static generators do, for example Jekyll/Octopress.
The first [1] option I found is quite obvious and I guess it's generator agnostic:
[This](/posts/2012-12-31-my-own-post)
But, would it work? I guess it requires explicit .html extension:
[This](/posts/2012-12-31-my-own-post.html)
Doesn't it?
Another option I found [2] is closely tight to Octopress and uses dedicated plugin:
[This]({% post_url 2012-12-31-my-own-post %})
It has pros and cons, but sounds like a neat way to generate interlinks automatically.
Does anyone know if such feature exists or is planned?
Yet another option could be to not to link (parts) sentences directly,
but to list related posts at the bottom, i.e. in section Related Posts.
Similar approach as visible here [3, at the bottom of every post.
I imagine, this could be realised as list of related posts could be
displayed in metadata as list of base names of .markdown files:
related:
- 2012-01-11-hello-world
- 2012-12-31-my-own-post
Obviously, the first option does not require any Hakyll/Haskell hacking.
Any recommendations? Ideas?
I have ~400 posts moved from WordPress I may need to revise
and update, so I'd like to do it right and consistently use in future.