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

Tags wiped after publish #1139

Closed
ricardojmendez opened this issue Mar 24, 2015 · 3 comments
Closed

Tags wiped after publish #1139

ricardojmendez opened this issue Mar 24, 2015 · 3 comments
Labels
bug Something isn't working

Comments

@ricardojmendez
Copy link

Just noticed this behavior:

  • hexo new draft TestDraft
  • Edit the article to add tags and some text
  • hexo publish TestDraft

The tags will have been removed from the resulting article.

Environment:

hexo: 3.0.0
os: Darwin 14.1.0 darwin x64
http_parser: 2.3
node: 0.12.0
v8: 3.28.73
uv: 1.0.2
zlib: 1.2.8
modules: 14
openssl: 1.0.1l

@steckerhalter
Copy link

I noticed the same thing with 3.0.0
I suddenly wondered why my tags were missing on the published site (for like the last 4 posts) and it occurred to me that all the tags had been removed from the markdown when I was using publish after having switched to 3.0.0

@ricardojmendez
Copy link
Author

This issue persists on 3.0.1

@tommy351 tommy351 added the bug Something isn't working label Apr 7, 2015
@naokiy
Copy link
Contributor

naokiy commented Apr 10, 2015

I met same trouble.

I modified scaffold file ( scaffolds/post.md ) like below to fix it.

title: {{ title }}
date: {{ date }}
tags:{% for tag in tags %}
  - {{tag}}{% endfor %}
---

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants