Skip to content

A document listing as conditional content #4651

Open
@cscheid

Description

@cscheid

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.

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.

Metadata

Metadata

Assignees

Labels

astissues related to AST processingenhancementNew feature or requestlistings

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions