Re: [hakyll] Questions about metadata per file and defining new markup tags

68 views
Skip to first unread message

Jasper Van der Jeugt

unread,
May 15, 2013, 6:20:37 AM5/15/13
to hakyll
Hello Neil,

Sorry for the delayed response. My Msc. thesis has me entangled in
each and every possible way which is why I haven't been able to be
very active here lately.

(1) There's currently no predefined way to do this, although I think
this would be a nice feature to add to Hakyll. I've created an issue
here [1] to remind myself of this when I have some more time. If any
other hackers reading this thread would like to work on this, contact
me. The easy workaround for now is to use a `preprocess` call which
splits this out and writes it to multiple files.

(2) This is handled by the Template system in Hakyll. Some more info
on that is available here [2].

Regarding Shake: Hakyll is quite a bit older than Shake which explains
why I didn't write it on top of Shake when I started the project. It
does seem quite interesting to port it, since the core of Hakyll is
very close to a build system as well, but doesn't have parallel
builds. I'll definitely investigate this when I have some more time.

[1]: https://github.com/jaspervdj/hakyll/issues/152
[2]: http://jaspervdj.be/hakyll/tutorials/04-compilers.html

Peace,
Jasper

On Fri, May 10, 2013 at 2:31 PM, <ndmit...@gmail.com> wrote:
> Hi,
>
> I want to convert my website (http://community.haskell.org/~ndm/, source at
> http://community.haskell.org/~ndm/darcs/website/) to Hakyll. At the moment
> I'm using a custom written static website generator in Haskell, but moving
> to Hakyll makes far more sense. However, there are two features I have in my
> custom static generator that I couldn't easily see alternatives for in
> Hakyll.
>
> 1) Metadata for large numbers of files. I have lots of papers, slides etc,
> and I keep some metadata in a few files, rather than having one metadata
> file per original file. As an example, see
> http://community.haskell.org/~ndm/darcs/website/downloads/slides/metadata.txt,
> which provides metadata for 39 files. Is there any way to put lots of
> metadata in one place?
>
> 2) Custom tags. In my pages I have defined a number of custom tags, for
> example at http://community.haskell.org/~ndm/darcs/website/pages/index.html
> I use tags such as <!helix more> and <:email "m...@gmail.com"> which are
> translated to different tags/links at translation time. Is there anything
> similar in Hakyll/Pandoc?
>
> Also, while reading through the rules and generation stuff, I wondered if
> anyone had looked at whether the Shake library
> (http://hackage.haskell.org/package/shake) might be useful to use as the
> basis for the Hakyll website building pieces? It gives a way to build stuff,
> with dependencies and minimal rebuilding, in parallel - which looks like it
> could fit nicely with Hakyll.
>
> Thanks, Neil
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "hakyll" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to hakyll+un...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages