Skip to content

Commit 2250ebc

Browse files
committed
More opengraph meta elements
1 parent a4e238b commit 2250ebc

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

src/html.js

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

44
export default function HTML(props) {
55
return (
6-
<html {...props.htmlAttributes} lang="en" prefix="og: https://ogp.me/ns#">
6+
<html
7+
{...props.htmlAttributes}
8+
lang="en"
9+
prefix="
10+
og: https://ogp.me/ns#
11+
article: https://ogp.me/ns/article#"
12+
>
713
<head>
814
<meta charSet="utf-8" />
915
<meta httpEquiv="x-ua-compatible" content="ie=edge" />
@@ -15,7 +21,6 @@ export default function HTML(props) {
1521
name="description"
1622
content="Changing hearts and minds about development and testing"
1723
/>
18-
<meta property="og:type" content="website" />
1924
<meta property="og:locale" content="en_US" />
2025
<meta property="og:site_name" content="Testing Required" />
2126
<meta property="og:image" content="/opengraph_preview.png" />

src/templates/post.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ export default function Template({ data }) {
1818
content={`${title} - ${siteMetadata.title}`}
1919
/>
2020
<meta property="og:description" content={excerpt} />
21+
22+
<meta property="og:type" content="article" />
23+
<meta property="article:author" content="Kylee Tilley" />
2124
</Helmet>
2225

2326
<div className="blog-post-container">

0 commit comments

Comments
 (0)