rich data
This commit is contained in:
parent
ee95b8fbae
commit
63d42bbd24
|
@ -3,6 +3,7 @@ import {graphql, PageProps, Link} from 'gatsby';
|
||||||
import Layout from '../components/Layout';
|
import Layout from '../components/Layout';
|
||||||
import {Query} from '../../graphql-types';
|
import {Query} from '../../graphql-types';
|
||||||
import Helmet from 'react-helmet';
|
import Helmet from 'react-helmet';
|
||||||
|
import logo from '../../static/logo-square-wob.png';
|
||||||
|
|
||||||
const MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
|
const MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
|
||||||
|
|
||||||
|
@ -22,6 +23,12 @@ const MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
|
||||||
</div>
|
</div>
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<title>{post.frontmatter?.title}</title>
|
<title>{post.frontmatter?.title}</title>
|
||||||
|
<meta property="og:type" content="website" />
|
||||||
|
<meta property="og:url" content={`https://riksolo.com/blog/${post.frontmatter?.slug}`} />
|
||||||
|
<meta property="og:title" content={post.frontmatter?.title} />
|
||||||
|
<meta property="og:description" content={post.frontmatter?.description} />
|
||||||
|
<meta property="og:image" content={`https://riksolo.com${logo}`} />
|
||||||
|
|
||||||
|
|
||||||
<meta name="title" content={post.frontmatter?.title} />
|
<meta name="title" content={post.frontmatter?.title} />
|
||||||
{post.frontmatter.description ? (
|
{post.frontmatter.description ? (
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
Loading…
Reference in New Issue