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

Handle drafts #16

Open
robinmetral opened this issue Jan 6, 2020 · 4 comments
Open

Handle drafts #16

robinmetral opened this issue Jan 6, 2020 · 4 comments

Comments

@robinmetral
Copy link

Hi,

First off, thanks for the AMAZING utility!

One small thing I've noticed is that if there are drafts in the XML export and prefixdate is set as true, the generated markdown files are named something like Invalid DateTime-my-blog-post.md (because drafts don't have a date by definition).

Maybe we could look into taking another flag to include (or not) drafts, and name any draft posts draft-my-blog-post.md as a fallback for the lack of date.

What do you think?

@lonekorean
Copy link
Owner

Ah, good catch!

This probably affects other options like --yearfolders and --yearmonthfolders that need a date component. I don't think using "draft" will work there.

Maybe we could go with Jekyll's approach? Bottom of this page: https://jekyllrb.com/docs/posts/

@robinmetral
Copy link
Author

robinmetral commented Jan 8, 2020

Ah nice, yes I think a draft directory should work! draft could also be included in the filename for people opting for a more "flat" export with --postfolders=false --prefixdate=true 🙂

@ployt0
Copy link
Contributor

ployt0 commented Aug 23, 2022

I would prefer drafts to be contained in a completely separate hierarchy so I don't need to load them when searching published posts.

drafts in the XML export and prefixdate is set as true, the generated markdown files

That's news to me! Mine were entirely missing. I do not use prefixdate however.

@srsgores
Copy link

What's the status on this change? Would you like some help adding support for drafts?

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

4 participants