Skip to content
This repository has been archived by the owner on Sep 7, 2020. It is now read-only.

Filter draft post on production build #111

Closed
thangngoc89 opened this issue Jan 29, 2016 · 6 comments
Closed

Filter draft post on production build #111

thangngoc89 opened this issue Jan 29, 2016 · 6 comments

Comments

@thangngoc89
Copy link
Contributor

I would love to have an options in markdown file for draft. Like this ?


---
title: "foo"
draft: true

---

And that page won't appear on production build.

@MoOx
Copy link
Owner

MoOx commented Aug 23, 2016

I think the issue here (if you can confirm) is to "hide" the post in post listing + does not create file.

A way to handle that currently is "just" to hide from post listing, using a filter depending on the env. But file will still be emitted.
Maybe we can add a plugin know we have this. This might require a change in the loader to prevent loader emitting the file.

@thangngoc89
Copy link
Contributor Author

I mentioned this before #630 (comment)

@MoOx
Copy link
Owner

MoOx commented Aug 23, 2016

Yeah but my other issue was more about a real plugin system, not just related to the loader :)
Anyway we know what we need to do!

@thangngoc89
Copy link
Contributor Author

ok. Sounds good to me

@bloodyowl
Copy link
Contributor

Going to be fixed with #925

@MoOx
Copy link
Owner

MoOx commented May 11, 2017

Fixed in master

@MoOx MoOx closed this as completed May 11, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants