我刚刚将我现有的网站从 Hugo 转换为 blogdown。我所做的只是换了几个我用过的地方,{{ .Site.BaseURL }}
一切都很好。但是,新帖子似乎无法使用blogdown::new_post()
. 我认为这是因为我的主题不包含任何基于以下消息的原型。有没有其他人遇到过这个问题,解决方法是什么?
ERROR 2017/09/04 16:58:13 Error processing archetype file /Users/jason/code/hugo-site/themes/jsonbecker/archetypes/default.md: unable to cast <nil> of type <nil> to Time
Error: unable to cast <nil> of type <nil> to Time
Error in file(con, "r") : cannot open the connection
In addition: Warning message:
In file(con, "r") :
cannot open file 'content/post/2017-09-04-switching-to-blogdown.md': No such file or directory
我假设文件问题是一个红鲱鱼,因为目录内容/帖子绝对存在于我所在项目工作目录的相对路径中,并且第一步只是无法生成文件。
所有源代码都可以在这里找到:https ://github.com/jsonbecker/jsonbecker-hugo 。