Set og:title name for overriding

This commit is contained in:
Brandon Romano 2020-05-13 23:16:13 -07:00
parent 2ed1c44440
commit cd61f741a7
2 changed files with 6 additions and 2 deletions

View File

@ -9,7 +9,7 @@ export default function UseCaseLayout({ title, description, children }) {
return (
<>
<HashiHead is={Head} title={pageTitle} description={description}>
<meta property="og:title" content={pageTitle} />
<meta name="og:title" property="og:title" content={pageTitle} />
</HashiHead>
<div id="p-use-case">

View File

@ -82,7 +82,11 @@ class NextApp extends App {
{ href: '/fonts/dejavu/mono.woff2', as: 'font' },
]}
>
<meta property="og:title" content="Consul by HashiCorp" />
<meta
name="og:title"
property="og:title"
content="Consul by HashiCorp"
/>
</HashiHead>
{ALERT_BANNER_ACTIVE && (
<AlertBanner {...alertBannerData} theme="consul" />