我按照本教程使用 hakyll 创建了一个基本的静态网页。它包括许多从目录中的 markdown 呈现的页面posts
,例如2015-08-12-spqr.markdown
.
我更喜欢 asciidoc 而不是 markdown,并尝试将 asciidoc 添加2018-01-23_adoc-user-manual.asciidoc
到post
目录中。但是,hakyll
尝试编译页面时会引发错误:
Initialising...
Creating store...
Creating provider...
Running rules...
Checking for out-of-date items
Compiling
updated templates/default.html
updated about.rst
updated templates/post.html
updated posts/2015-08-12-spqr.markdown
updated posts/2015-10-07-rosa-rosa-rosam.markdown
updated posts/2015-11-28-carpe-diem.markdown
updated posts/2015-12-07-tu-quoque.markdown
[ERROR] Hakyll.Web.readPandocWith: I don't know how to read a file of the type Binary for: posts/2018-01-23_adoc-user-manual.asciidoc
CallStack (from HasCallStack):
error, called at lib/Hakyll/Web/Pandoc.hs:66:31 in hakyll-4.12.5.0-8ZITvFN5YREEKv6B76SCAd:Hakyll.Web.Pandoc
这是pandocCompiler
无法处理的问题asciidoc
吗?可以asciidoc
用hakyll
吗?