### Bug description

Follow up to https://github.com/quarto-dev/quarto-cli/issues/4903

[Files for reproduction](https://github.com/quarto-dev/quarto-cli/files/11119409/5048.zip)

When I provide a YAML file to `listing.contents` like in

```
---
title: "About"
listing:
  id: about-listing
  contents: listing.yml
---

About this site

:::{#about-listing}
:::
```

where `listing.yml` is

```
- path: ../foo/post.md
```

I get

![Screenshot showing the bug](https://user-images.githubusercontent.com/1506457/229055605-014e762a-16a0-4a19-8d04-b23c9c273f93.png)

Note that some metadata was improperly read or processed. This is the same output that I get if I use

```
---
title: "About"
listing:
  id: about-listing
  contents:
    - path: post.md
---

About this site

:::{#about-listing}
:::
```

The expected result is

![Screenshot showing expected result](https://user-images.githubusercontent.com/1506457/229056265-fab7be94-8910-46ba-bfbd-6d67050e9b37.png)

that is already obtained by removing the keyword `path` like in

```
---
title: "About"
listing:
  id: about-listing
  contents:
    - post.md
---

About this site

:::{#about-listing}
:::
```

Remove the the keyword `path` in the YAML file raises an error reported at https://github.com/quarto-dev/quarto-cli/issues/4903.

# Environment information

Output of `quarto check`:

```
[✓] 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.296
      Path: /opt/quarto/bin

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

[✓] Checking Python 3 installation....OK
      Version: 3.10.6
      Path: /usr/bin/python3
      Jupyter: 5.2.0
      Kernels: python3

(-) Checking Jupyter engine render....Traceback (most recent call last):
  File "/opt/quarto/share/jupyter/jupyter.py", line 21, in <module>
    from notebook import notebook_execute, RestartKernel
  File "/opt/quarto/share/jupyter/notebook.py", line 18, in <module>
    from nbclient import NotebookClient
ModuleNotFoundError: No module named 'nbclient'
[✓] Checking Jupyter engine render....OK
```

### 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-31T07:52:54Z
rgaiacs
bug
v1.3
closed
Metadata from files listed in YAML file for listing contents not fully read
https://github.com/quarto-dev/quarto-cli/issues/5048