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

Update title-blocks.qmd #1421

Closed
wants to merge 1 commit into from
Closed

Conversation

melaniewalsh
Copy link

I think it's just doi, not doi-title

I think it's just doi, not doi-title
@cderv
Copy link
Collaborator

cderv commented Oct 28, 2024

What makes you say that ?

We do use doi-title in quarto CLI
https://github.com/quarto-dev/quarto-cli/blob/464c18c3a4a02df537e1765883eeaf1cafa30f6d/src/resources/filters/modules/authors.lua#L222
https://github.com/quarto-dev/quarto-cli/blob/464c18c3a4a02df537e1765883eeaf1cafa30f6d/src/resources/filters/modules/authors.lua#L890-L892

doi-title is the way to change the label used which is Doi by default. doi meta is for the DOI reference itself AFAIK

@melaniewalsh
Copy link
Author

@cderv In my version of Quarto (1.5.47), doi in the YAML adds a DOI to the title block but doi-title does nothing.

For example, this is doi:
Screenshot 2024-11-05 at 9 36 50 AM

This is doi-title:
Screenshot 2024-11-05 at 9 37 46 AM

You can see it in our repo, as well: https://github.com/Post45-Data-Collective/website/blob/29d6cd03b8197232d0196dd3a9213de00ae8240d/posts/the-index-of-major-literary-prizes-in-the-us/index.qmd#L8

@melaniewalsh
Copy link
Author

@cderv Wait ok, I understand now thatdoi-title is changing the label for the DOI in the title block. I still think this is confusing in the documentation though because I don't think it specifies elsewhere how to just add a DOI to the title block?

@cderv
Copy link
Collaborator

cderv commented Nov 5, 2024

because I don't think it specifies elsewhere how to just add a DOI to the title block?

This is documented only in the reference page: https://quarto.org/docs/reference/formats/html.html#title-author

We could indeed add it in the guide part of the doc - just need to find the right place for it.

possibly by adding a new table in https://quarto.org/docs/authoring/title-blocks.html about allowed fields

@melaniewalsh
Copy link
Author

I think a new table on the title blocks page would be great. Thanks for pointing out where it's documented in the reference page. I think when you do a global search on the site, the guide pages come up first, so having it documented in the guide would help (and maybe linking to the reference would help, too). Thanks!

@cderv
Copy link
Collaborator

cderv commented Nov 6, 2024

I opened the idea to track this

Thanks for the feedback !

@cderv cderv closed this Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants