|
| 1 | + {{#with (or antoraVersion site.antoraVersion)}} |
| 2 | + <meta name="generator" content="Antora {{this}}"> |
| 3 | + {{/with}} |
1 | 4 | {{#with page.canonicalUrl}}
|
2 | 5 | <link rel="canonical" href="{{{this}}}">
|
| 6 | + <meta property="og:url" content="{{{this}}}"> |
3 | 7 | {{/with}}
|
| 8 | + {{#with page.description}} |
| 9 | + <meta name="description" content="{{{detag this}}}"> |
| 10 | + <meta property="og:description" content="{{{detag this}}}"> |
| 11 | + {{else}} |
4 | 12 | {{#if page.component}}
|
5 |
| - <meta name="page-spec" content="{{spec page}}"> |
| 13 | + <meta property="og:description" content="A documentation page for {{{page.component.title}}}."> |
6 | 14 | {{/if}}
|
7 |
| - {{#with page.description}} |
8 |
| - <meta name="description" content="{{this}}"> |
9 | 15 | {{/with}}
|
10 | 16 | {{#with page.keywords}}
|
11 |
| - <meta name="keywords" content="{{this}}"> |
12 |
| - {{/with}} |
13 |
| - {{#with (or antoraVersion site.antoraVersion)}} |
14 |
| - <meta name="generator" content="Antora {{this}}"> |
| 17 | + <meta name="keywords" content="{{{this}}}"> |
15 | 18 | {{/with}}
|
| 19 | + {{#if page.component}} |
| 20 | + <meta property="og:site_name" content="Asciidoctor Docs"> |
| 21 | + <meta name="twitter:card" content="summary_large_image"> |
| 22 | + <meta property="og:title" content="{{{detag page.title}}}"> |
| 23 | + <meta property="og:image" content="{{{or site.url siteRootPath}}}/_/img/asciidoctor-og.png"> |
| 24 | + <meta name="twitter:site" content="@asciidoctor"> |
| 25 | + {{/if}} |
16 | 26 | {{#unless (eq page.attributes.pagination undefined)}}
|
17 | 27 | {{#with page.previous}}
|
18 | 28 | <link rel="prev" href="{{{relativize ./url}}}">
|
|
21 | 31 | <link rel="next" href="{{{relativize ./url}}}">
|
22 | 32 | {{/with}}
|
23 | 33 | {{/unless}}
|
| 34 | + {{#if page.component}} |
| 35 | + <meta name="page-spec" content="{{{spec page}}}"> |
| 36 | + {{/if}} |
0 commit comments