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: unknown block tag: elseif #2515

Closed
onekyle opened this issue Apr 15, 2017 · 2 comments
Closed

Template render error: unknown block tag: elseif #2515

onekyle opened this issue Apr 15, 2017 · 2 comments

Comments

@onekyle
Copy link

onekyle commented Apr 15, 2017

Environment Info

Node version(node -v): v7.7.1

Your theme _config.yml (Optional): Next

Hexo and Plugin version(npm ls --depth 0):

├── hexo@3.2.2
├── hexo-deployer-git@0.2.0 -> /Users/durand/Desktop/MyBlog/node_modules/.0.2.0@hexo-deployer-git
├── hexo-generator-archive@0.1.4
├── hexo-generator-category@0.1.3
├── hexo-generator-index@0.2.0
├── hexo-generator-tag@0.2.0
├── hexo-renderer-ejs@0.2.0
├── hexo-renderer-marked@0.2.11
├── hexo-renderer-stylus@0.3.1
└── hexo-server@0.2.0

For BUG

  1. BUG description:
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
Template render error: (unknown path) [Line 4, Column 152]
  unknown block tag: elseif
  1. The way to reproduce:
    After my test, if I type this code in my markdown file, it will be an error.
    The code like these:
` {% elseif theme.disqus_shortname %} `

Sorry about my bad English~

@onekyle
Copy link
Author

onekyle commented Apr 15, 2017

If I use
image

to instead ` {% elseif theme.disqus_shortname %} `

Then do hexo c,hexo g, and it would be OK.

@NoahDragon
Copy link
Member

It causes the confliction with nunjucks tags. It should fixed in #2461, will be released in next build.

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