Skip to content

Commit e579380

Browse files
committed
don't add the component title to the og:title on the home page
1 parent 4c38793 commit e579380

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/partials/head-info.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
{{#if page.component}}
2020
<meta property="og:site_name" content="Asciidoctor Docs">
2121
<meta name="twitter:card" content="summary_large_image">
22-
<meta property="og:title" content="{{{page.component.title}}} - {{{detag page.title}}}">
22+
<meta property="og:title" content="{{#unless page.home}}{{{page.component.title}}} - {{/unless}}{{{detag page.title}}}">
2323
<meta property="og:image" content="{{{or site.url siteRootPath}}}/_/img/asciidoctor-og.png">
2424
<meta name="twitter:site" content="@asciidoctor">
2525
{{/if}}

0 commit comments

Comments
 (0)