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 in tag endemoji in hexo 3.1.1 #11

Closed
Eamonnzhang opened this issue Jan 21, 2016 · 3 comments
Closed

Template render error in tag endemoji in hexo 3.1.1 #11

Eamonnzhang opened this issue Jan 21, 2016 · 3 comments

Comments

@Eamonnzhang
Copy link

@Eamonnzhang Eamonnzhang commented Jan 21, 2016

Template render error: unknown block tag: endemoji
at Error.exports.TemplateError (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\lib.js:51:19)
at Object.extend.fail (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\parser.js:64:15)
at Object.extend.parseStatement (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\parser.js:544:18)
at Object.extend.parseNodes (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\parser.js:1151:30)
at Object.extend.parseAsRoot (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\parser.js:1177:42)
at Object.module.exports.parse (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\parser.js:1199:18)
at Object.module.exports.compile (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\compiler.js:1118:48)
at Obj.extend._compile (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\environment.js:444:35)
at Obj.extend.compile (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\environment.js:433:18)
at null. (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\environment.js:378:22)
at Object.exports.withPrettyErrors (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\lib.js:24:16)
at Obj.extend.render (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\environment.js:374:20)
at Obj.extend.renderString (F:\hexo_blog\node_modules\hexo\node_modules\nunjucks\src\environment.js:261:21)
at F:\hexo_blog\node_modules\hexo\lib\extend\tag.js:56:9
at tryCatcher (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\util.js:26:23)
at Promise._resolveFromResolver (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\promise.js:480:31)
at new Promise (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\promise.js:70:37)
at Tag.render (F:\hexo_blog\node_modules\hexo\lib\extend\tag.js:55:10)
at Object.tagFilter as onRenderEnd
at Promise.then.then.then.output (F:\hexo_blog\node_modules\hexo\lib\hexo\render.js:55:19)
at tryCatcher (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\util.js:26:23)
at Promise._settlePromiseFromHandler (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\promise.js:507:31)
at Promise._settlePromiseAt (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\promise.js:581:18)
at Promise._settlePromises (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\promise.js:697:14)
at Async._drainQueue (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\async.js:123:16)
at Async._drainQueues (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\async.js:133:10)
at Async.drainQueues (F:\hexo_blog\node_modules\hexo\node_modules\bluebird\js\main\async.js:15:14)
at process._tickCallback (node.js:415:13)

@LionSR
Copy link

@LionSR LionSR commented Jan 27, 2016

I met this problem too.

@Gtskk
Copy link
Contributor

@Gtskk Gtskk commented Feb 16, 2016

Maybe endemoji-block is the right end block tag name.

@tkirshboim
Copy link
Contributor

@tkirshboim tkirshboim commented Feb 16, 2016

@Gtskk that didn't work for me. The thing that did work was renaming the tag to emoji_block. See the pull request I made.
It seems that - (minus sign) in the block name does not work anymore (?).

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

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.