File tree Expand file tree Collapse file tree 3 files changed +25
-0
lines changed
tests/docs/smoke-all/2026/04/02/og-type-url/posts/override-og Expand file tree Collapse file tree 3 files changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -331,6 +331,8 @@ export type OpenGraphConfig = {
331331provided in the `open-graph` metadata, Quarto will use the website or
332332book `title` by default. */ ;
333333 locale ?: string ; /* Locale of open graph metadata */
334+ type ?: string ; /* Content to use for the `og:type` tag */
335+ url ?: string ; /* Content to use for the `og:url` tag */
334336} & SocialMetadata ;
335337
336338export type PageFooter = {
Original file line number Diff line number Diff line change @@ -269,6 +269,8 @@ export const ZodOpenGraphConfig = z.object({
269269 "image-height" : z . number ( ) ,
270270 locale : z . string ( ) ,
271271 "site-name" : z . string ( ) ,
272+ type : z . string ( ) ,
273+ url : z . string ( ) ,
272274} ) . strict ( ) . partial ( ) ;
273275
274276export const ZodPageFooter = z . object ( {
Original file line number Diff line number Diff line change 1+ ---
2+ title : " Override Open Graph"
3+ description : " A test post for Open Graph metadata overrides."
4+ date : " 2026-04-02"
5+ author : " Quarto Tester"
6+ website :
7+ open-graph :
8+ type : website
9+ url : https://www.example.com/
10+ _quarto :
11+ render-project : true
12+ tests :
13+ html :
14+ ensureFileRegexMatches :
15+ -
16+ - ' <meta property="og:type" content="website">'
17+ - ' <meta property="og:url" content="https://www.example.com/">'
18+ - []
19+ ---
20+
21+ This is a test post with overridden Open Graph metadata.
You can’t perform that action at this time.
0 commit comments