diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-07-13 11:23:17 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-07-13 11:23:17 +0200 |
commit | 86d5773c3ab4814cc9a6d09bc991c5bf18003404 (patch) | |
tree | befe85e6c062b8719c31a25d09b46989f0416d63 /pages/post | |
parent | fc073c245fb2122d3afbe16d3188cc96c022baa8 (diff) |
colors and meta tags
Diffstat (limited to 'pages/post')
-rw-r--r-- | pages/post/[id].tsx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pages/post/[id].tsx b/pages/post/[id].tsx index 46606f8..70347c8 100644 --- a/pages/post/[id].tsx +++ b/pages/post/[id].tsx @@ -1,3 +1,4 @@ +import Head from 'next/head'; import { readdirSync, readFileSync } from 'fs'; import { join } from 'path'; import { ReactNode } from 'react'; @@ -80,6 +81,12 @@ export default function Post(props: { meta: ArticleMeta; }) { return <div> + <Head> + <title>{props.meta.title} - Loek's Blog</title> + <meta property='og:site_name' content={props.meta.date} /> + <meta property='og:title' content={props.meta.title} /> + <meta property='og:description' content={props.meta.subtitle} /> + </Head> <div className='centeredPage'> <div className='titleWrapper'> <h1>{props.meta.title}</h1> |