### Discussed in https://github.com/quarto-dev/quarto-cli/discussions/4635

<div type='discussions-op-text'>

<sup>Originally posted by **andrewpbray** March  5, 2023</sup>
Hello, I've just tried putting a document listing as conditional content and it didn't work. Here's a MWE.

[conditional-listing.zip](https://github.com/quarto-dev/quarto-cli/files/10892937/conditional-listing.zip)

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.</div>
cscheid
2023-03-06T20:09:01Z
cscheid
enhancement
v1.4
open
A document listing as conditional content
https://github.com/quarto-dev/quarto-cli/issues/4651