Globally define open-graph and twitter-card fallback-defaults #5865
Closed
gadenbuie
started this conversation in
Feature Requests
Replies: 2 comments 1 reply
-
It should be the case that in the current pre-release builds of Quarto you can use:
and in pages:
To affect the social metadata images. Specifying the images within the sub fields for each category will override this value (including the page). It was hard to figure out the right behavior for that case... Would this work? It looks like the same isn't true for description - we don't currently look at the description field specified in the |
Beta Was this translation helpful? Give feedback.
1 reply
-
This has been resolved in 1a9192e |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
Currently, if you have
description
orimage
set inopen-graph
andtwitter-card
in the_quarto.yml
for a website project, these become the primary description for any link in the website.This is helpful in a very large website, especially one that has been migrated from another static site generator to Quarto.
But setting these values in
_quarto.yml
introduces the problem that these values are preferred over the normal lookup procedure for post-specific values. In other words, if these values are not set, quarto will pick upimage
anddescription
from the appropriate places in post.To correct this in the post, you need to repeat your image and description 3 times (or use super advanced YAML features):
What I'd really like is for the
open-graph
andtwitter-card
fields in_quarto.yml
to be used last rather than first in the lookup. I'm having a hard time thinking of a situation in which someone would want the post-specific image and description to be overwritten, so I'm inclined to think it's okay to break existing behavior, at least for these fields.If changing current behavior isn't possible, it'd be helpful to ensure
image
anddescription
at thewebsite
level are used as the final fallback value, e.g.Beta Was this translation helpful? Give feedback.
All reactions