Hey Vincent,
Yes, if page A depends on page B, page B will always be generated first.
However, looking at the source code of the site, I think:
-- Version for providing only metadata
match "pages/*.md" $ version "forListing" $ do
route $ composeRoutes (gsubRoute "pages/" (const ""))
(setExtension ".html")
compile $ getResourceString
Can be changed to:
-- Version for providing only metadata
match "pages/*.md" $ version "forListing" $ do
compile $ getResourceString
You don't need to route it somewhere if you're going to overwrite it
anyway?
Peace,
Jasper
On Wed, May 21, 2014 at 06:46:42AM -0700,
vbef...@gmail.com wrote:
> (A few months later ...)
>
> Hi,
>
> Coming back to the question - with your solution, how sure are you that the
> forListing version is run first and the actual one second, overwriting it,
> and not the opposite ? Is the fact that the "forListing" versions are used
> in the main ones enough to guarantee that the overwriting happens in the
> correct order ?
>
> /vincent
>
> On Wednesday, January 29, 2014 12:10:48 PM UTC+1, Daniel F wrote:
> >
> > Hi! I use a similar trick for my site, I overwrite the "raw" version
> > though (it's called "forListing" in my code)
> >
> >
http://hub.darcs.net/co-dan/website/browse/site.hs#80
> >
> > > On 28 Jan 2014, at 23:10, Vincent Beffara <
vbef...@ens-lyon.fr<javascript:>>
> > an email to
hakyll+un...@googlegroups.com <javascript:>.
> For more options, visit
https://groups.google.com/d/optout.