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

兄弟们,我从next主题切换到别人自定义的主题后报错Template render error: (unknown path) [Line 1, Column 2] unknown block tag: cq #3272

Closed
booboom opened this Issue Sep 27, 2018 · 4 comments

Comments

5 participants
@booboom

booboom commented Sep 27, 2018

$ hexo s
(node:80924) [DEP0061] DeprecationWarning: fs.SyncWriteStream is deprecated.
INFO  Start processing
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 1, Column 2]
  unknown block tag: cq
    at Object._prettifyError (/Users/admin/Documents/baomer/node_modules/nunjucks/src/lib.js:36:11)
    at Template.render (/Users/admin/Documents/baomer/node_modules/nunjucks/src/environment.js:524:21)
    at Environment.renderString (/Users/admin/Documents/baomer/node_modules/nunjucks/src/environment.js:362:17)
    at Promise (/Users/admin/Documents/baomer/node_modules/hexo/lib/extend/tag.js:66:9)
    at Promise._execute (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/debuggability.js:303:9)
    at Promise._resolveFromExecutor (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/promise.js:483:18)
    at new Promise (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/promise.js:79:10)
    at Tag.render (/Users/admin/Documents/baomer/node_modules/hexo/lib/extend/tag.js:64:10)
    at Object.tagFilter [as onRenderEnd] (/Users/admin/Documents/baomer/node_modules/hexo/lib/hexo/post.js:230:16)
    at Promise.then.then.result (/Users/admin/Documents/baomer/node_modules/hexo/lib/hexo/render.js:65:19)
    at tryCatcher (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/util.js:16:23)
    at Promise._settlePromiseFromHandler (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/promise.js:512:31)
    at Promise._settlePromise (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/promise.js:569:18)
    at Promise._settlePromise0 (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/promise.js:614:10)
    at Promise._settlePromises (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/promise.js:693:18)
    at Async._drainQueue (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/async.js:133:16)
    at Async._drainQueues (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/async.js:143:10)
    at Immediate.Async.drainQueues [as _onImmediate] (/Users/admin/Documents/baomer/node_modules/bluebird/js/release/async.js:17:14)
    at runCallback (timers.js:810:20)
    at tryOnImmediate (timers.js:768:5)
    at processImmediate [as _immediateCallback] (timers.js:745:5) 
@YoshinoriN

This comment has been minimized.

Show comment
Hide comment
@YoshinoriN

YoshinoriN Oct 5, 2018

Member

@booboom

I can't read chinese. But, I think maybe below issue is same problem.
Please use below issue if for your information.

iissnan/hexo-theme-next#1348

Member

YoshinoriN commented Oct 5, 2018

@booboom

I can't read chinese. But, I think maybe below issue is same problem.
Please use below issue if for your information.

iissnan/hexo-theme-next#1348

@cliuyang

This comment has been minimized.

Show comment
Hide comment
@cliuyang

cliuyang Oct 5, 2018

He means when changing the theme from NexT to others, there are some errors. Emmmm, I am not sure if I have expressed it clearly.

cliuyang commented Oct 5, 2018

He means when changing the theme from NexT to others, there are some errors. Emmmm, I am not sure if I have expressed it clearly.

@monkeyWzr

This comment has been minimized.

Show comment
Hide comment
@monkeyWzr

monkeyWzr Oct 11, 2018

@YoshinoriN He changed theme from NexT to other theme and error occurred. That's because NexT has a costum tag {% cq %} {% endcq %}. He used that tag somewhere in his post so when changing to other theme hexo could not render the tag. Delete the cq tags in his post will work.
The referenced issue seems different :-D

@booboom
兄弟你用NexT的时候肯定是在某一篇博客里面使用了 {% cq %} {% endcq %}标签。这是NexT自定义的标签,切换到其他主题之后hexo处理不了这种标签了。找一下那个标签删掉就可以了。

monkeyWzr commented Oct 11, 2018

@YoshinoriN He changed theme from NexT to other theme and error occurred. That's because NexT has a costum tag {% cq %} {% endcq %}. He used that tag somewhere in his post so when changing to other theme hexo could not render the tag. Delete the cq tags in his post will work.
The referenced issue seems different :-D

@booboom
兄弟你用NexT的时候肯定是在某一篇博客里面使用了 {% cq %} {% endcq %}标签。这是NexT自定义的标签,切换到其他主题之后hexo处理不了这种标签了。找一下那个标签删掉就可以了。

@booboom

This comment has been minimized.

Show comment
Hide comment
@booboom

booboom Oct 16, 2018

谢谢大家,问题解决了,是hexo-tag的原因,之前写文章的时候用的很多都是next自带的tag,所以别的主题没发识别,thanks @YoshinoriN @monkeyWzr @cliuyang

booboom commented Oct 16, 2018

谢谢大家,问题解决了,是hexo-tag的原因,之前写文章的时候用的很多都是next自带的tag,所以别的主题没发识别,thanks @YoshinoriN @monkeyWzr @cliuyang

@YoshinoriN YoshinoriN closed this Oct 16, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment