-
DescriptionI am using Quarto for a website. I have a page listing people (similar to a department website listing all faculty), which I am doing via a listing. The YAML heading looks like this: The people to be listed are in a YAML file that looks something like this: I would like them listed in alphabetical order by author last name, but the above only sorts by the first name if I ask to sort by author. Is there an option for sort that would give sorting by family name? I haven't been able to find documentation on the full set of what is accepted for sorting options. Of course, I could list them as Btw, I can't explicitly give family versus given name in the YAML file because I hit this bug. However, my understanding is that when you type Bob Jones for an author entry, it is parsed into given and family name anyway so I assume the problem is not that Quarto doesn't know family from given name, but rather I don't know what is the right phrase to trigger pulling from the family name. (I submitted this to Stackoverflow before I realized Quarto has its own discussion pages; sorry for the duplicate posting, but there was no response on Stackoverflow after 2 weeks...) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
The sort is silently ignored (evaluates to Relevant code:
Even if dot-notation was supported so that Even though author:
name: "Jane Doe"
affiliation: "University of X"Quarto's listing pipeline normalises it to a flat
The This means:
|
Beta Was this translation helpful? Give feedback.
The sort is silently ignored (evaluates to
undefined) becauseitem[l.field]inwebsite-listing-read.tsperforms a plain key lookup."author.name"is not a valid top-level key on aListingItem.Relevant code:
quarto-cli/src/project/types/website/listing/website-listing-read.ts
Lines 270 to 283 in c792ec2