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

adding draft mode #1045

Merged
merged 1 commit into from
Aug 11, 2023
Merged

adding draft mode #1045

merged 1 commit into from
Aug 11, 2023

Conversation

tlienart
Copy link
Owner

cc @limarta (if you could try this and check it works fine for you, I'd be grateful for the feeback)

+++
draft = true
+++

# ABC

Some content that you want to see locally but not when deploying

if you call serve() locally, the page will appear. If you call optimize(...) (which would be the case with the github action), that page will not be generated and if there's a file at the output location, it'll be removed.

closes #1044

@tlienart tlienart merged commit f1f7d04 into master Aug 11, 2023
@limarta
Copy link

limarta commented Aug 15, 2023

seems to work!

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

Successfully merging this pull request may close these issues.

Draft Mode using a Local Variable
2 participants