Adds og:title

This commit is contained in:
Brandon Romano 2020-05-13 23:03:42 -07:00
parent 9819432b22
commit b749423c9d
2 changed files with 8 additions and 6 deletions

View File

@ -5,13 +5,13 @@ import Head from 'next/head'
import HashiHead from '@hashicorp/react-head'
export default function UseCaseLayout({ title, description, children }) {
const pageTitle = `Consul ${title}`
return (
<>
<HashiHead
is={Head}
title={`Consul ${title}`}
description={description}
/>
<HashiHead is={Head} title={pageTitle} description={description}>
<meta property="og:title" content={pageTitle} />
</HashiHead>
<div id="p-use-case">
<BasicHero
heading={title}

View File

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