Skip to content
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

Template render error: unexpected token: > #1564

Closed
connor11528 opened this issue Oct 24, 2015 · 2 comments
Closed

Template render error: unexpected token: > #1564

connor11528 opened this issue Oct 24, 2015 · 2 comments

Comments

@connor11528
Copy link

I am getting an error after I created my posts:

$ hexo server
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: unexpected token: >
    at Error.exports.TemplateError (/Users/connorleech/Projects/cleechtech-blog/node_modules/hexo/node_modules/nunjucks/src/lib.js:51:19)
    at Object.extend.fail (/Users/connorleech/Projects/cleechtech-blog/node_modules/hexo/node_modules/nunjucks/src/parser.js:64:15)
    at Object.extend.parsePrimary (/Users/connorleech/Projects/cleechtech-blog/node_modules/hexo/node_modules/nunjucks/src/parser.js:947:18)
    at Object.extend.parseUnary (/Users/connorleech/Projects/cleechtech-blog/node_modules/hexo/node_modules/nunjucks/src/parser.js:882:25)
    at Object.extend.parsePow (/Users/connorleech/Projects/cleechtech-blog/node_modules/hexo/node_modules/nunjucks/src/parser.js:856:25)
    at Object.extend.parseMod (/Users/connorleech/Projects/cleechtech-blog/node_modules/hexo/node_modules/nunjucks/src/parser.js:844:25)
    at Object.extend.parseFloorDiv (/Users/connorleech/Projects/cleechtech-blog/node_modules/hexo/node_modules/nunjucks/src/parser.js:832:25)

It seems this may be related to #1439 and #1292. They are in Chinese though.
#1510 also refernces this. Must I escape certain characters when blogging??

@connor11528
Copy link
Author

I had a blog post about Meteor.js and in order to render it I had escape:

{% raw %}{{> loginButons }}{% endraw %}

@yijunlou
Copy link

yijunlou commented Jan 6, 2016

  • I think this happens because lacking a Tag Plugins.
  • you may try this:
$ npm install hexo-tag-bootstrap --save

and than hexo s.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants