Adds og:title
This commit is contained in:
parent
9819432b22
commit
b749423c9d
|
@ -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}
|
||||
|
|
|
@ -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" />
|
||||
)}
|
||||
|
|
Loading…
Reference in New Issue