A document listing as conditional content #4635
-
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:
I had hoped that on I'm guessing this has something to do with the order of operations on render? Thanks for any thoughts / suggestions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This won't work. The only way I think you might be able to do what you want is to use pre/post-render script to write the "index.qmd" file depending on profile/environment (see https://quarto.org/docs/projects/profiles.html). Note that an issue to track this has be opened (can be seen on the right of your post): #4651 |
Beta Was this translation helpful? Give feedback.
This won't work.
:::{#blog}
is only a placeholder, it does not trigger the creation of a listings, it only overrides the default location of the listing.The only way I think you might be able to do what you want is to use pre/post-render script to write the "index.qmd" file depending on profile/environment (see https://quarto.org/docs/projects/profiles.html).
Note that an issue to track this has be opened (can be seen on the right of your post): #4651