Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extended author name schema doesn’t display correctly in listings #4881

Closed
3 of 5 tasks
JoFrhwld opened this issue Mar 18, 2023 · 3 comments
Closed
3 of 5 tasks

Extended author name schema doesn’t display correctly in listings #4881

JoFrhwld opened this issue Mar 18, 2023 · 3 comments
Assignees
Labels
bug Something isn't working
Milestone

Comments

@JoFrhwld
Copy link

Bug description

When using the extended author name schema, authors’ names get rendered as [object Object] on listing pages.

I’ve set up an example (https://github.com/JoFrhwld/quarto-name) using the default quarto blog template in RStudio, but adjusting the authors names like so

author: 
  - name: 
      given: "Harlow"
      family: "Malloc"

and

author: 
  - name: 
      given: "Tristan"
      family: "O'Malley"
      literal: "Tristan O'Malley"

Both posts appear with “[object Object]” as the author name on the listing page.

Quarto & RStudio Versions

I’ve only run this reproducible example on RStudio Workbench with Quarto v1.0.36.

But you can see a live example here, which was built with Quarto v1.3.264

Checklist

  • 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.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.
  • Please provide the output of quarto check so we know which version of quarto and its dependencies you're running.
@JoFrhwld
Copy link
Author

Looking at the listing page from before, I can confirm that author names are appearing correctly! https://lingmethodshub.github.io/content/python/

@irmoodie
Copy link

I can recreate this using Quarto version 1.6.40. Using the examples from the Quarto docs with the extended author name schema renders author names as [object Object].

Using the qmd file:

---
title: "Listing Example"
listing:
  id: sample-listings
  contents: listing.yaml
  sort: "date desc"
  type: table
---

And the listing yaml file listing.yaml:

- title: "Item 1"
  author: 
    - name:
        family: Jones
        given: Nora
    - name:
        family: Smith
        given: Bob

Is rendered as:

Image

@mcanouil
Copy link
Collaborator

@irmoodie this issue was closed.
Please open a new one filling the issue template.
You can reference issue in new ones.
Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants