Browse Source

Adds og:title

pull/7883/head
Brandon Romano 5 years ago
parent
commit
2ed1c44440
  1. 10
      website/layouts/use-cases/index.jsx
  2. 4
      website/pages/_app.js

10
website/layouts/use-cases/index.jsx

@ -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}

4
website/pages/_app.js

@ -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…
Cancel
Save