-
Notifications
You must be signed in to change notification settings - Fork 0
/
samplepage.js
50 lines (48 loc) · 1.32 KB
/
samplepage.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import articles from "/whatarraywilllooklike.js";
import renderContent from "/samplerendercontent.js";
const thisid = "2";
const thisarticle = articles.find(article => article.id === thisid);
const thiscontent =renderContent(thisarticle);
export const metadata={
title: thisarticle.m_title,
description: thisarticle.m_desc,
robots: "index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1",
keywords:thisarticle.keywords,
author: "Satyam Ghimire",
openGraph: {
siteName:"sitename",
title: thisarticle.m_title,
description: thisarticle.m_desc,
type: "article",
url: thisarticle.slug,
publishedTime: thisarticle.pdate,
modifiedTime:thisarticle.mdate,
images:{
url: thisarticle.photo,
width: 720,
height: 480,
alt: thisarticle.alt},
},
twitter: {
title: thisarticle.m_title,
description: thisarticle.m_desc,
site: '@something',
card: 'summary_large_image',
images:{
url: thisarticle.photo,
width: 720,
height: 480,
alt: thisarticle.alt},
},
};
export default function page(){
return(
<>
<div className="art-page">
<div className="content">
{thiscontent}
</div>
</div>
</>
)
}