Repository navigation
docs: document page-level opt-out of social metadata - #2297
Merged
Merged
Conversation
From Quarto 1.11 (quarto-dev/quarto-cli#15091), `open-graph: false` or `twitter-card: false` in a page or a `_metadata.yml` omits that metadata when the website enables it. The page only described merging page and site metadata, so the opt-out was not discoverable.
Merged
3 of 5 tasks
Contributor
📝 Preview Deployment🔍 Full site preview: https://deploy-preview-2297.quarto.org 🔄 Modified Documents |
cderv
added a commit
to quarto-dev/quarto-cli
that referenced
this pull request
Oct 16, 2026
…of social metadata (#15091) Pages read `bread-crumbs`, `back-to-top-navigation`, `page-navigation`, `margin-header` and `margin-footer` from their own front matter, but the document schema only declared them under `website:`, so a wrong-typed page value passed validation silently and editors offered no completion. A page `open-graph: false` or `twitter-card: false` also still emitted `og:` or `twitter:` tags when the site enabled them. The provider loop skipped a provider only when both page and site values were falsy, and the merge treats a page `false` like an unset value, so the site won. - Declare the five page-level options in the document schema, with the same types as their `website:` counterparts - Skip a social metadata provider when the page sets it to `false`; an empty page value still falls back to the site setting Related to #15084 See quarto-dev/quarto-web#2297 for the page opt-out documentation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion to quarto-dev/quarto-cli#15091. From Quarto 1.11,
open-graph: falseortwitter-card: falsein a page or a_metadata.ymlomits that metadata when the website enables it. Before, the pagefalsewas ignored and the site settings won.The social metadata docs only described merging page and site metadata, so this adds a "Disabling on a Page" section to
website-tools.qmdwith the 1.11 prerelease callout. It targetsprereleasebecause the behavior is only true from 1.11.