How to have published (live) and unpublished (dev) pages, so I can render both live and dev versions of a website? #9626
-
DescriptionWhat is the best way to have separate development and live versions of a site? I have a site with pages that are both published and unpublished. When using it locally I want to render all the pages so I see unpublished pages, but when I make it live I want only render the published pages. I get the way to do this is to add a custom field to the YAML for a page:
But I can't see any easy way to have render/not render based on this field, other than writing custom code for the render process. It seems to me that there should be a built in way to do this, but I can't find it. Perhaps I'm missing something. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
Ah, just discovered Project Profiles. The documentation doesn't say how to have published and unpublished pages, but I'll try to work that out and close this discussion if I find out the answer. |
Beta Was this translation helpful? Give feedback.
Then you might want to use 1.5 pre-release and the "draft" feature instead: https://quarto.org/docs/prerelease/1.5/website-drafts.html