-
DescriptionI have a quarto notebook that basically works off a set of three datasets, with each one being optional. The document consists of a number of plots specific to each of these datasets. If a dataset is missing, I currently have an explicit test around each plot and instead present a text like "not available". This isn't very elegant - there's a ton of these "not available" texts, the normal text blocks in between still show, and it's a lot of repetitive code. I came across the possibility to include separate markdown files: {{< include _content.qmd >}}. I could split up the current document into three, but what I'm really missing is an option to conditionally include these. Is there a way to accomplish this? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Note that this particular topic has been discussed several times, search for "conditional".
|
Beta Was this translation helpful? Give feedback.
-
Thank you Mickaël! The metadata check is what I was looking for: {.content-hidden unless-meta="path.to.metadata"}. That should cut it. |
Beta Was this translation helpful? Give feedback.
Note that this particular topic has been discussed several times, search for "conditional".