Open warrenwx opened 5 years ago
@warrenwx Can you explain more please?
What is your scaffold? This? https://github.com/hexojs/hexo-starter/tree/master/scaffolds
hexo: 3.7.1 hexo-cli: 1.1.0 os: Linux 3.10.0-862.14.4.el7.x86_64 linux x64 http_parser: 2.8.0 node: 8.12.0 v8: 6.2.414.66 uv: 1.19.2 zlib: 1.2.11 ares: 1.10.1-DEV modules: 57 nghttp2: 1.32.0 napi: 3 openssl: 1.0.2p icu: 60.1 unicode: 10.0 cldr: 32.0 tz: 2017c
I used "hexo" with pulling master branch from https://github.com/hexojs/hexo
This is a sample generated automatically.
I'm not sure what is wrong. The original error looks like a YAML parsing error. Maybe if you open up the file that errors you can add console.log(...)
to find more information. If you try again can you let me know @warrenwx ? Thank you
@warrenwx @tcrowe
I found same issues https://github.com/hexojs/hexo/issues/1753#issuecomment-381079224
This error maybe caused by _config.yml
formatting.
Could you please show your _config.yml
to us?
_config.txt sorry for that.
@warrenwx OK. I got it. I misunderstood. It's so sorry... I will create PR for this issue.
And may I change this issue title more detailed?
PS. I can't judge add space to after tags field is better or not. So, I do not know whether it can will accept or not.
Anyway, for most beginners with hexo, the problem is common to meet. As for the title, please revise it for better recognition. Thanks a lot.
@warrenwx Thanks a lot 😄
If I understand correctly, this file needs to be modified: https://github.com/hexojs/hexo-starter/blob/master/scaffolds/post.md
I'm not sure how much this will help beginners with Hexo. YAML syntax errors caused by missing spaces can be avoided If the text editor can highlight front-matter