-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hexo generate fail - Template render error: (unknown path) #1837
Comments
This error indicate a syntax error in one of your post/page file. If you can't find the error in that file (has to do with an 'alert' block tag), post the file content here. |
The Before the bug I used tranquilpeak theme and in one of my post I used something like :
but this theme-specific tag don't work with other themes. In fact when I changed my theme in So I have to remove the tags or continue to use tranquilpeak themes. But is there another way to continue using the tags and make it works with all themes ? |
You can copy the alert.js file from here into your own But that will not style the resulting |
That mean I need to copy _alert.scss and alert.js in all themes I want to try. And that's not sure that will work everywhere. Maybe the better thing to do is to use hexo-tag-bootstrap plugin wich also have an alert tag. With this plugin this will work everywhere. Thanks anyway for your idea, it was a good idea |
As you can see here tags name are exactly the sames so I even do'nt have to change them. Just by installing hexo-tag-bootstrap I make it work again. Thans for your help ;) |
PS : The hexo-tag-boostrap just provide scripts but no css |
I cannot find which page is wrong, and it's really inconvenient to delete recent pages separately to checkout which page is wrong. |
@sunnogo try something like
to find is this pattern is present in one of your source files. |
@noraj1337 Thanks for your reply. I don't have a '{%' in markdown text, but I find that the statement below causes the error.
I have no idea with front-end and render, maybe it's a new issue. |
Finally, I find that pattern |
@gboudreau |
@gboudreau Hope to get your reply! Thank you! |
[root@host myhexo]# hexo generate --debug /usr/myhexo/node_modules/hexo/lib/extend/tag.js:184 I've got the same question,and I've tried to reinstall the npm,or check the __config.yml but find notiong wrong. Sad... |
@superarm i meet the same problem,did u solve it? |
@superarm @lululu811 我也遇到这个问题,我的解决方法是升级node到最新版就可以了 |
I encontered the same problem when I use two {, just put a space in them. My issue was solved. |
同样的出现了这个问题,同时编辑两篇文章,然后无法run了。两边文章轮流删除,锁定在这篇文章。命令行就简单的这样提示说可以去hexo官网查看。还真的是因为在代码块中使用了双花括号,{{}},使用这个会让markdown文件出错,在花括号中间随便写了一个单词{{massage}}就解决了。 出错语句:### {{}}、v-text、v-html data数据双向绑定指令 然后才反应过来,命令行其实已经明明白白告诉告诉我原因了,我还一直纠结它说的第5行。小白入门真的是要慢慢爬。 FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting 第三行明明白白的告诉我它理解不了我的符号 }} 在这里回复记录一下自己的小白时刻。 |
加油!!! |
出错的符号,能不能在js里 log一下? |
try use raw,like: {% raw %} {% sometag %} {% endraw %} |
i encoutered the same problem,i use the hexo generate --debug,the info the below
i can't found the exact problem, bug refer to hexo 错误汇总 i found it may be is the new post's problem finally i solved the problem, it's about the latex math syntax is conflict with hexo |
遇到这个问题,原来是文章中, |
same problem. I find can not use |
It's a good solution.The reason of this problem is special symbol in post. |
Hi
I'm using hexo 3.2.0
and I can't generate my files anymore.
When I run
hexo g
I have an error :I tried
hexo clean
and thehexo g
but still have the same.If I
hexo init
a new blog I can usehexo g
but in my current one I can't.I also tried to replace my
_config.yml
by the default one but can generate too.The text was updated successfully, but these errors were encountered: