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

_drafts folder like Jekyll for Hexo #638

Closed
kristofzerbe opened this issue Aug 28, 2023 · 3 comments
Closed

_drafts folder like Jekyll for Hexo #638

kristofzerbe opened this issue Aug 28, 2023 · 3 comments

Comments

@kristofzerbe
Copy link

In the doc there is pointed out, that Jekyll users don't need the draftField:

Important: If you use Jekyll, you do not have to use the draft field, as Front Matter supports the _drafts, _posts folders and collections from Jekyll. If you use Jekyll, make sure to set the frontMatter.framework.id setting to jekyll.

Hexo works also with _posts and _drafts, therefore it would be helpful, if "frontMatter.framework.id": "hexo" is set, no draftField configuration would be needed anymore.

@kristofzerbe kristofzerbe added the enhancement New feature or request label Aug 28, 2023
@estruyf
Copy link
Owner

estruyf commented Sep 11, 2023

Thanks @kristofzerbe for the information! I will do some tests and work out a similar approach in Hexo.

@estruyf estruyf added this to To do in 9.3.0 via automation Sep 13, 2023
@estruyf estruyf moved this from To do to In progress in 9.3.0 Sep 13, 2023
estruyf added a commit that referenced this issue Sep 13, 2023
@estruyf
Copy link
Owner

estruyf commented Sep 13, 2023

I have been working on this, and better Hexo support is now. It starts with the initialization:

image

The same logic for the draft status as Jekyll has been implemented.

Xnapper-2023-09-13-14 36 26

You'll be able to test it out in the latest beta version

@kristofzerbe
Copy link
Author

Works like a charm in v9.3.6172561-beta. No additional attribute anymore ... \o/

image

Don't know if it has something to do with this change regarding Hexo: The dashboard crashes on hitting the reload button. I have open up a new issue on that: #664

Thnx

@estruyf estruyf moved this from In progress to Done in 9.3.0 Oct 6, 2023
@estruyf estruyf closed this as completed Oct 6, 2023
@estruyf estruyf mentioned this issue Oct 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
9.3.0
Done
Development

No branches or pull requests

2 participants