### Bug description

In a web site project, a page with

```
---
title: "Data Visualization"
listing: 
  - id: methods
    contents: listing-contents.yml
    type: table
---

Lorem ipsum

:::{#methods}
:::
```

and `listing-contents.yml` as


```
- `awesome.md`
```

gives the error

```
Unexpected listing contents in file /tmp/quarto/gallery/data_visualization/network_visualisation/listing-contents.yml. The array may only contain listing items, not paths or other types of data.
```

But embedding the YAML into the Markdown works without problem:

```
---
title: "Network Visualization"
listing: 
  - id: methods
    contents:
      - "awesome.md"
    type: table
---

:::{.column-screen}

Lorem ipsum

:::{#methods}
:::

:::
```

The pages that I want to include in the list is in directories above the file with the listing.

# Environment

`uname -a` returns

```
Linux 5b7bffab04a5 6.2.7-2-MANJARO #1 SMP PREEMPT_DYNAMIC Sat Mar 18 17:15:16 UTC 2023 x86_64 GNU/Linux
```

`quarto check` returns

```
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.1: OK
      Dart Sass version 1.55.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.3.280
      Path: /opt/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....(None)

      Unable to locate an installed version of Python 3.
      Install Python 3 from https://www.python.org/downloads/

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/
```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
- [X] Please provide the output of `quarto check` so we know which version of quarto and its dependencies you're running.
dragonstyle
2023-03-21T11:12:12Z
rgaiacs
needs-repro
v1.3
closed
Support YAML file with list of files for listing contents.
https://github.com/quarto-dev/quarto-cli/issues/4903