Skip to content

Commit 49e65f8

Browse files
committed
Add opengraph meta elements
1 parent d173c94 commit 49e65f8

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/html.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import PropTypes from 'prop-types';
33

44
export default function HTML(props) {
55
return (
6-
<html {...props.htmlAttributes} lang="en">
6+
<html {...props.htmlAttributes} lang="en" prefix="og: https://ogp.me/ns#">
77
<head>
88
<meta charSet="utf-8" />
99
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
@@ -13,8 +13,9 @@ export default function HTML(props) {
1313
/>
1414
<meta
1515
name="description"
16-
content="The personal website of Kylee Tilley"
16+
content="Changing hearts and minds about development and testing"
1717
/>
18+
<meta property="og:locale" content="en_US" />
1819
{props.headComponents}
1920
</head>
2021
<body {...props.bodyAttributes}>

src/layouts/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ export default ({ children }) => (
3030
<Helmet>
3131
<title>{site.siteMetadata.title}</title>
3232
<link rel="me" href="https://mastodon.social/@testingrequired" />
33-
<meta
34-
name="viewport"
35-
content="width=device-width, initial-scale=1.0"
36-
/>
33+
34+
<meta property="og:title" content={site.siteMetadata.title} />
35+
<meta property="og:url" content={location.href} />
3736
</Helmet>
3837

3938
<Header fullscreen={location.pathname === '/'}>

0 commit comments

Comments
 (0)