Hexo: Improved `render_drafts` behaviour

Created on 11 Oct 2015  Â·  5Comments  Â·  Source: hexojs/hexo

Currently when render_drafts is defined, drafts are simply rendered as regular posts.

Perhaps we can render the permalink of the draft, but not include the post in any other index or archive pages. In this case you can share the link to the draft for others to review before actually publishing it. There can also be some custom css class showing the post is actually still in draft.

stale wontfix

Most helpful comment

How about put them in specific directory and render them as pages?

All 5 comments

How about put them in specific directory and render them as pages?

+1 for specific dir
Just made this question in StackOverflow

we can render the permalink of the draft, but not include the post in any other index or archive pages.

I couldn’t agree more with this idea! Asking others to review a post draft is definitely a common practice – and I don’t think any blogger wants their draft posts to appear on public listings. IMO what @clkao suggests is the most reasonable behavior for drafts.

How about put them in specific directory and render them as pages?

To be honest, this seems like a viable workaround but not a proper solution to me.

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

This issue has been automatically marked as stale because lack of recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  Â·  27Comments

SukkaW picture SukkaW  Â·  22Comments

curbengh picture curbengh  Â·  21Comments

SukkaW picture SukkaW  Â·  25Comments

dsaltares picture dsaltares  Â·  46Comments