p***@spootnik.org
2015-08-04 11:11:33 UTC
Hi,
I'm beginning my transition from o-blog to hakyll and finding it very
satisfying so far, thanks for the great work.
I have a bit of trouble with a couple of use-cases and I would love your
input on it:
1. I would like to be able to supply arbitrary lists in my Context, a bit
like constField but for
a list. This would allow me to configure what my navigation area
contains, based on
the route. I can't see how to do it. I basically want something of this
essence:
mapListField :: String -> [(String, String)] -> Context a
It seems it should leverage listField, but since I'm not dealing with
items
How to go about it escapes me.
2. It seems as though the metadata from org-mode documents is not looked up
by hakyll. I am not speaking about YAML front-matter, but indications
such
as "#+title: Some title" which are valid in the Org-mode world. Is only
front-matter processed ? If so, how should I go about accessing the
pandoc document to pull its metadata ?
3. Is there a generic way of rewriting URLs ? My posts are stored as
YYYY-mm-dd-post-title.org, my previous URL nomenclature was
entries/YYYY/mm/dd/post-title.html, is it possible to access
item metadata during URL rewrites ?
Sorry for the - most likely - beginner questions, I'm still wrapping my
head around some parts of hakyll and haskell.
Cheers,
- pyr
I'm beginning my transition from o-blog to hakyll and finding it very
satisfying so far, thanks for the great work.
I have a bit of trouble with a couple of use-cases and I would love your
input on it:
1. I would like to be able to supply arbitrary lists in my Context, a bit
like constField but for
a list. This would allow me to configure what my navigation area
contains, based on
the route. I can't see how to do it. I basically want something of this
essence:
mapListField :: String -> [(String, String)] -> Context a
It seems it should leverage listField, but since I'm not dealing with
items
How to go about it escapes me.
2. It seems as though the metadata from org-mode documents is not looked up
by hakyll. I am not speaking about YAML front-matter, but indications
such
as "#+title: Some title" which are valid in the Org-mode world. Is only
front-matter processed ? If so, how should I go about accessing the
pandoc document to pull its metadata ?
3. Is there a generic way of rewriting URLs ? My posts are stored as
YYYY-mm-dd-post-title.org, my previous URL nomenclature was
entries/YYYY/mm/dd/post-title.html, is it possible to access
item metadata during URL rewrites ?
Sorry for the - most likely - beginner questions, I'm still wrapping my
head around some parts of hakyll and haskell.
Cheers,
- pyr
--
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
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+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.