|
11 | 11 | {{/unless}} |
12 | 12 | {{#with page.title}} |
13 | 13 | <meta property="og:title" content="{{{this}}} | Redpanda {{{@root.page.component.title}}}"> |
| 14 | + <meta name="twitter:title" content="{{{this}}} | Redpanda {{{@root.page.component.title}}}"> |
14 | 15 | {{/with}} |
15 | | - {{#with page.description}} |
16 | | - <meta name="description" content="{{{detag this}}}"> |
17 | | - <meta property="og:description" content="{{{detag this}}}"> |
| 16 | + {{#with page.canonicalUrl}} |
| 17 | + <meta property="og:url" content="{{{this}}}"> |
18 | 18 | {{/with}} |
| 19 | + {{#if page.description}} |
| 20 | + <meta name="description" content="{{{detag page.description}}}"> |
| 21 | + <meta property="og:description" content="{{{detag page.description}}}"> |
| 22 | + <meta name="twitter:description" content="{{{detag page.description}}}"> |
| 23 | + {{else}} |
| 24 | + <meta name="description" content="Redpanda Documentation: Guides, API references, and resources for event streaming."> |
| 25 | + <meta property="og:description" content="Redpanda Documentation: Guides, API references, and resources for event streaming."> |
| 26 | + <meta name="twitter:description" content="Redpanda Documentation: Guides, API references, and resources for event streaming."> |
| 27 | + {{/if}} |
19 | 28 | {{#with page.keywords}} |
20 | 29 | <meta name="keywords" content="{{{this}}}"> |
21 | 30 | {{/with}} |
22 | 31 | {{#with (or antoraVersion site.antoraVersion)}} |
23 | 32 | <meta name="generator" content="Antora {{{this}}}"> |
24 | 33 | {{/with}} |
| 34 | + {{#if (and (ne page.component.title 'home') (ne page.layout 'labs-search') (ne page.attributes.role 'home'))}} |
| 35 | + <meta property="og:type" content="article"> |
| 36 | + {{else}} |
| 37 | + <meta property="og:type" content="website"> |
| 38 | + {{/if}} |
| 39 | + <meta property="og:site_name" content="Redpanda Documentation"> |
| 40 | + <meta property="og:image" content="{{#with @root.site.url}}{{{this}}}{{/with}}/_/img/redpanda_social-card.png"> |
| 41 | + <meta property="og:image:type" content="image/png"> |
| 42 | + <meta property="og:image:alt" content="Redpanda Documentation Social Card"> |
| 43 | + <meta property="og:image:width" content="1200"> |
| 44 | + <meta property="og:image:height" content="630"> |
| 45 | + <meta name="twitter:card" content="summary_large_image"> |
| 46 | + <meta name="twitter:image" content="{{#with @root.site.url}}{{{this}}}{{/with}}/_/img/redpanda_social-card.png"> |
| 47 | + <meta name="twitter:image:alt" content="Redpanda Documentation Social Card"> |
0 commit comments