quarto-dev / quarto-dev/quarto-cli
listing appears even though it is against the profile
Open
@cscheid is already working on this.
Since Apr 7, 2025.
bug
listings
- Dominant language
- JavaScript
- Stars
- 6k
- Forks
- 458
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 41
Description
Bug description
I'm using two profiles in order to create a multilingual site. It looks like it prints all present listings even if it against profiling. So I see Russian listing in English version and vice versa.
Steps to reproduce
Here is my index.qmd.
---
listing:
- id: ex
type: grid
contents:
- name: First Item
href: https://www.quarto.org
- id: ex-ru
type: grid
contents:
- name: Первый объект
href: https://www.quarto.org
---
::: {.content-visible when-profile="english"}
## Hello
One, two, three
:::{#ex}
:::
:::
::: {.content-visible when-profile="russian"}
Раз, два, три
:::{#ex-ru}
:::
:::
My quarto.yml:
project:
type: website
profile:
default: english
group: [english, russian]
My _quarto-english.yml:
project:
title: "test"
output-dir: ./docs
And my _quarto-russian.yml:
project:
title: "test"
output-dir: ./docs/ru
Expected behavior
I expected just one listing to appear.
Actual behavior
But there are two listings after compilation.
Your environment
- IDE: RStudio 2023.12.0 Build 369
- OS: Linux Mint 21.2 x86_64
Quarto check output
Quarto 1.4.533
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.11: OK
Dart Sass version 1.69.5: OK
Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.533
Path: /opt/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (external install)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: TinyTex
Path: /home/agricolamz/.TinyTeX/bin/x86_64-linux
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.12
Path: /usr/bin/python3
Jupyter: 5.3.0
Kernels: python3
[✓] Checking Jupyter engine render....OK
[✓] Checking R installation...........OK
Version: 4.3.2
Path: /usr/lib/R
LibPaths:
- /home/agricolamz/R/x86_64-pc-linux-gnu-library/4.3
- /usr/local/lib/R/site-library
- /usr/lib/R/site-library
- /usr/lib/R/library
knitr: 1.42
rmarkdown: 2.25
[✓] Checking Knitr engine render......OK
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.