s***@gmail.com
2016-07-02 00:37:17 UTC
I would like to include post-related images in the posts folder, so I tried
to use the following rules:
match "posts/*.png" $ do
route idRoute
compile copyFileCompiler
match "posts/*.markdown" $ do
route $ setExtension "html"
compile $ pandocCompiler
rebuilding the web site:
[ERROR] Hakyll.Core.Compiler.Require.load: posts/image.png (snapshot
_final) was found in the cache, but does not have the right type: expected
[Char] but got CopyFile
Is this expected behaviour, am I doing something wrong, or is this some
sort of bug?
to use the following rules:
match "posts/*.png" $ do
route idRoute
compile copyFileCompiler
match "posts/*.markdown" $ do
route $ setExtension "html"
compile $ pandocCompiler
= loadAndApplyTemplate "templates/post.html" postCtx
= loadAndApplyTemplate "templates/default.html" postCtx
= relativizeUrls
But Hakyll doesn't like this and gives me the following error when= loadAndApplyTemplate "templates/default.html" postCtx
= relativizeUrls
rebuilding the web site:
[ERROR] Hakyll.Core.Compiler.Require.load: posts/image.png (snapshot
_final) was found in the cache, but does not have the right type: expected
[Char] but got CopyFile
Is this expected behaviour, am I doing something wrong, or is this some
sort of bug?
--
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.