rich data

This commit is contained in:
Rik Berkelder 2021-08-02 23:59:23 +02:00
parent ee95b8fbae
commit 63d42bbd24
2 changed files with 7 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import {graphql, PageProps, Link} from 'gatsby';
import Layout from '../components/Layout';
import {Query} from '../../graphql-types';
import Helmet from 'react-helmet';
import logo from '../../static/logo-square-wob.png';
const MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
@ -22,6 +23,12 @@ const MdPageTemplate: React.FC<PageProps<Query>> = ({data}) => {
</div>
<Helmet>
<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} />
{post.frontmatter.description ? (

BIN
static/logo-square-wob.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB