Hello all,
I'm a relative beginner to Hakyll, investigating whether/how I might migrate my personal blog from IkiWiki. There
are a couple of IkiWiki features I want to retain so I've been looking at writing a "bridge" to implement those features
As part of this, I wish to pre-process text files that are considered by Hakyll prior to them being passed to Pandoc.
I do this and perform text substitutions fine. But I might also gather metadata from the body of text files that I would
like to "promote" up to Hakyll's Metadata data structures for the item.
Searching around I see several people trying to do this in the past. The closest to a solution I have found is this
thread "I'm hitting a wall trying to scrape context fields from a file's body":
The solution there gathers metadata from item bodies and injects them into a new Context, for template substitution.
In most cases this is probably, ultimately, what I want; but I'm not sure it is in *all* cases. There may be circumstances
where I want the Metadata for an item for other reasons than template substitution. It seems conceptually that what I
am wanting to do is to modify the Metadata for an Item and the template stuff is one of several possible "downstream"
processes from that.
the Haddock documentation for the Metadata type is quite brief and there appears to be no supported way to add to
the Metadata for an item. Is this right? Is this a feature that would be considered for the future?
Thank you (and any other comments or suggestions on my IkiWiki→Hakyll quest are gratefully received)
Best wishes
--
Jonathan Dowland