Open
Description
Discussed in #4635
Originally posted by andrewpbray March 5, 2023
Hello, I've just tried putting a document listing as conditional content and it didn't work. Here's a MWE.
The operative part is in this doc:
---
title: "Conditional-listing"
listing:
id: blog
contents:
- post-1.qmd
- post-2.qmd
---
This is a Quarto website.
To learn more about Quarto websites visit <https://quarto.org/docs/websites>.
:::{.content-hidden when-profile="noblog"}
:::{#blog}
:::
:::
I had hoped that on quarto render
I'd see the blog but on quarto render --profile noblog
I would not, but alas, both versions have the blog.
I'm guessing this has something to do with the order of operations on render?
Thanks for any thoughts / suggestions.