mirror of https://github.com/hashicorp/consul
Adds og:title
parent
8929428c03
commit
2ed1c44440
|
@ -5,13 +5,13 @@ import Head from 'next/head'
|
||||||
import HashiHead from '@hashicorp/react-head'
|
import HashiHead from '@hashicorp/react-head'
|
||||||
|
|
||||||
export default function UseCaseLayout({ title, description, children }) {
|
export default function UseCaseLayout({ title, description, children }) {
|
||||||
|
const pageTitle = `Consul ${title}`
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<HashiHead
|
<HashiHead is={Head} title={pageTitle} description={description}>
|
||||||
is={Head}
|
<meta property="og:title" content={pageTitle} />
|
||||||
title={`Consul ${title}`}
|
</HashiHead>
|
||||||
description={description}
|
|
||||||
/>
|
|
||||||
<div id="p-use-case">
|
<div id="p-use-case">
|
||||||
<BasicHero
|
<BasicHero
|
||||||
heading={title}
|
heading={title}
|
||||||
|
|
|
@ -81,7 +81,9 @@ class NextApp extends App {
|
||||||
{ href: '/fonts/metro-sans/bold.woff2', as: 'font' },
|
{ href: '/fonts/metro-sans/bold.woff2', as: 'font' },
|
||||||
{ href: '/fonts/dejavu/mono.woff2', as: 'font' },
|
{ href: '/fonts/dejavu/mono.woff2', as: 'font' },
|
||||||
]}
|
]}
|
||||||
/>
|
>
|
||||||
|
<meta property="og:title" content="Consul by HashiCorp" />
|
||||||
|
</HashiHead>
|
||||||
{ALERT_BANNER_ACTIVE && (
|
{ALERT_BANNER_ACTIVE && (
|
||||||
<AlertBanner {...alertBannerData} theme="consul" />
|
<AlertBanner {...alertBannerData} theme="consul" />
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in New Issue