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

Unclear how to separate drafts from posts #50

Closed
Trevoke opened this issue Apr 27, 2019 · 4 comments
Closed

Unclear how to separate drafts from posts #50

Trevoke opened this issue Apr 27, 2019 · 4 comments
Labels

Comments

@Trevoke
Copy link
Contributor

Trevoke commented Apr 27, 2019

Hello!

Thank you for this amazing tool. I have a few questions:

  1. Will drafts and posts be picked up in all subdirectories under the content directory?
  2. If I use the org-header, what is the header for a draft? Is it #+DRAFT: true ? or #+DRAFT: yes ? Or .. both .. or .. something else?
  3. Will drafts show up both in the list of drafts and in the list of posts?
  4. How do I help you test this if you need me to?
@masasam
Copy link
Owner

masasam commented Apr 28, 2019

Hi @Trevoke .
Thank you for comment.

1.Will drafts and posts be picked up in all subdirectories under the content directory?

Sorry, I don't understand.
Please tell me a little more detail.

2.If I use the org-header, what is the header for a draft? Is it #+DRAFT: true ? or #+DRAFT: yes ? Or .. both .. or .. something else?

You can do it below.
#+DRAFT: t

3.Will drafts show up both in the list of drafts and in the list of posts?

Yes you're right. List of posts displays draft. The reason is that if I don't show drafts in list of posts, it will be slowly when there are a lot of articles. I can not think that there are 1000 drafts, but I have to assume that there are 1000 articles.

4.How do I help you test this if you need me to?

Thanks @Trevoke .
It doesn't matter what format you're in, so it's helpful for me if you feel free to write anything.

@Trevoke
Copy link
Contributor Author

Trevoke commented Apr 30, 2019

Hi!

For the first question, I mean this:

content
├── drafts
│   ├── continuous-improvement.org
│   ├── cross-functional-teams-vs-multiple-queues.org
└── post
    ├── maintainability-is-relative.org
    ├── separate-manipulation-from-presentation.org
    └── the-value-of-estimates-for-a-team.org

Will all of those be picked up by the tool?

Thank you for all your other answers :)

@masasam
Copy link
Owner

masasam commented May 1, 2019

@Trevoke Thank you for the detailed explanation. In easy-jekyll, I've implemented to collect in _draft directory. In jekyll, it will become draft if put in _draft directory. But in hugo, I think that there is not much meaning because it will not be a draft without draft = true at the front matter even if you create a directory dedicated to draft.

Although easy-hugo-list-draft (D key) can not be used in org header, if only header is hugo standard and only text is written by org mode, you can use easy-hugo-list-draft. Easy-hugo-list-draft will show the draft list all you want.

---
title: "test"
date: 2019-05-01T14:28:40+09:00
draft: true
---
Write from here in org-mode

@Trevoke
Copy link
Contributor Author

Trevoke commented May 1, 2019

You're right, thank you :)

@Trevoke Trevoke closed this as completed May 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants