我想第一次使用Hakyll。遵循关于the official site的教程,我试图扩展路径处理图像以使用字体。我已经改变了代码site.hs这样: match ("images/*" .||. "fonts/*") $ do
route idRoute
compile copyFileCompiler
在fonts目录,我有一些.ttf字体文件,其权限和业主配合网站的静态
我正在关注the official instructions on the Hakyll site,以便在我的网站上启动并运行帖子挑逗。不幸的是,我碰到了一个障碍,并且说明没有太大的帮助。 我得到超出范围的错误在这个片段中引用的item值: loadAndApplyTemplate
"template/postitem.html"
(teaserField "teaser" "
我想为我的Hakyll站点的上下文添加一个字段。如果某个关键字存在于元数据中,那么我想转换相应的值并将其包含在上下文中。如果密钥不存在于元数据中,则不应将任何内容添加到上下文中。 我写了这个功能应该做什么,我描述: -- | Creates a new field based on the item's metadata. If the metadata field is
-- not pres
我想匹配posts目录中扩展名为*.md和*.tex的文件。 我不能使用"posts/*" :: Pattern的原因是因为帖子目录中有文件*.tex.metadata。而site会给这个文件带来错误。 [ERROR] Hakyll.Web.readPandocWith: I don't know how to read a file of the type Binary for: posts/2