@@ -11,12 +11,15 @@ export interface Props {
1111 metadata? : Metadata
1212 canonicalURL: URL | string
1313 quickstartFrontmatter? : QuickstartsFrontmatter
14+ pageTitle? : string // Add page title from frontmatter
1415}
1516
16- const { metadata, canonicalURL, quickstartFrontmatter } = Astro .props
17- const formattedContentTitle = metadata ?.title
18- ? ` ${metadata .title } | ${SITE .title } `
19- : ` ${PAGE .titleFallback } | ${SITE .title } `
17+ const { metadata, canonicalURL, quickstartFrontmatter, pageTitle } = Astro .props
18+ const formattedContentTitle = pageTitle
19+ ? ` ${pageTitle } | ${SITE .title } `
20+ : metadata ?.title
21+ ? ` ${metadata .title } | ${SITE .title } `
22+ : ` ${PAGE .titleFallback } | ${SITE .title } `
2023const description = metadata ?.description ?? SITE .description
2124const excerpt = metadata ?.excerpt ?? description
2225
@@ -73,6 +76,11 @@ const structuredDataObjects = quickstartFrontmatter
7376<!-- Primary Meta Tags -->
7477<meta name =" description" content ={ description } />
7578<meta name =" keywords" content ={ excerpt } />
79+ <meta name =" author" content =" Chainlink Labs" />
80+ <meta name =" robots" content =" index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1" />
81+ { metadata ?.datePublished && <meta name = " article:published_time" content = { metadata .datePublished } />}
82+ { metadata ?.lastModified && <meta name = " article:modified_time" content = { metadata .lastModified } />}
83+ <meta name =" format-detection" content =" telephone=no" />
7684
7785<!-- OpenGraph Tags -->
7886<meta property =" og:title" content ={ formattedContentTitle } />
@@ -81,16 +89,26 @@ const structuredDataObjects = quickstartFrontmatter
8189<meta property =" og:locale" content ={ SITE .defaultLanguage } />
8290<meta property =" og:image" content ={ canonicalImageSrc } />
8391<meta property =" og:image:alt" content ={ OPEN_GRAPH .image .alt } />
92+ <meta property =" og:image:width" content =" 1200" />
93+ <meta property =" og:image:height" content =" 630" />
94+ <meta property =" og:image:type" content =" image/png" />
8495<meta property =" og:description" content ={ description } />
8596<meta property =" og:site_name" content ={ SITE .title } />
97+ { metadata ?.datePublished && <meta property = " article:published_time" content = { metadata .datePublished } />}
98+ { metadata ?.lastModified && <meta property = " article:modified_time" content = { metadata .lastModified } />}
99+ <meta property =" article:author" content =" Chainlink Labs" />
100+ <meta property =" article:section" content =" Documentation" />
86101
87102<!-- Twitter Tags -->
88103<meta name =" twitter:card" content =" summary_large_image" />
89- <meta name =" twitter:site" content ={ OPEN_GRAPH .twitter } />
104+ <meta name =" twitter:site" content ={ ` @${OPEN_GRAPH .twitter } ` } />
105+ <meta name =" twitter:creator" content =" @chainlink" />
90106<meta name =" twitter:title" content ={ formattedContentTitle } />
91107<meta name =" twitter:description" content ={ description } />
92108<meta name =" twitter:image" content ={ canonicalImageSrc } />
93109<meta name =" twitter:image:alt" content ={ OPEN_GRAPH .image .alt } />
110+ <meta name =" twitter:domain" content =" docs.chain.link" />
111+ <meta name =" twitter:url" content ={ canonicalURL } />
94112
95113<!-- PWA Icons -->
96114<link href =" /favicon.ico" rel =" shortcut icon" type =" image/x-icon" />
0 commit comments