File tree 2 files changed +11
-0
lines changed
2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ const Post = (props: PostModel) => {
19
19
< title > { props . title } </ title >
20
20
< meta name = "description" content = "my site" />
21
21
< link rel = "shortcut icon" href = "favicon.ico" />
22
+ < meta
23
+ property = "og:title"
24
+ content = { props . title }
25
+ />
26
+ < meta name = "twitter:card" content = "summary" />
27
+ < meta
28
+ property = "og:description"
29
+ content = { props . description }
30
+ />
31
+ < meta property = "og:image" content = "https://pbs.twimg.com/media/FMfaMdVUYAAtgp2?format=jpg& name = large " />
22
32
</ Head >
23
33
24
34
< article >
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import type { MDXRemoteSerializeResult } from 'next-mdx-remote';
2
2
3
3
export interface PostModel {
4
4
title : string
5
+ description : string
5
6
date : Date
6
7
slug : string
7
8
source : MDXRemoteSerializeResult
You can’t perform that action at this time.
0 commit comments