j***@gmail.com
2015-09-19 11:57:27 UTC
Hi,
I have a directory (misc/) of files like spreadsheet etc that I deploy with
copyFileCompiler, and that I can reference from posts.
That works fine.
I build an index document of non-dated articles like this:
create ["documents.html"] $ do
route idRoute
compile $ do
docs <- loadAll "docs/*"
let docListCtx =
listField "docs" docsCtx (return docs) `mappend`
constField "title" "Documents" `mappend`
defaultContext
makeItem ""
the filenames.
I tried processing them similarly, but one of the files is already HTML,
saved from Open Office Calc.
I got:
[ERROR] Hakyll.Core.Compiler.Require.load: misc/houseonhillheat.html
(snapshot _final) was found in the cache, but does not have the right type:
expected [Cha
r] but got CopyFile
How would I get what is essentially a file listing (with the filenames
displayed but not the path) - ideally merged into the same list as
documents.html?
Thanks
james
I have a directory (misc/) of files like spreadsheet etc that I deploy with
copyFileCompiler, and that I can reference from posts.
That works fine.
I build an index document of non-dated articles like this:
create ["documents.html"] $ do
route idRoute
compile $ do
docs <- loadAll "docs/*"
let docListCtx =
listField "docs" docsCtx (return docs) `mappend`
constField "title" "Documents" `mappend`
defaultContext
makeItem ""
= loadAndApplyTemplate "templates/documents.html"
docListCtx= loadAndApplyTemplate "templates/default.html" docListCtx
= relativizeUrls
I'd like to include the contents of 'misc/' in there too, just listed with= relativizeUrls
the filenames.
I tried processing them similarly, but one of the files is already HTML,
saved from Open Office Calc.
I got:
[ERROR] Hakyll.Core.Compiler.Require.load: misc/houseonhillheat.html
(snapshot _final) was found in the cache, but does not have the right type:
expected [Cha
r] but got CopyFile
How would I get what is essentially a file listing (with the filenames
displayed but not the path) - ideally merged into the same list as
documents.html?
Thanks
james
--
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.