@@ -14,9 +14,11 @@ let make = (
14
14
~ogSiteName = ?,
15
15
~ogDescription = description ,
16
16
~ogTitle = ?,
17
- ~ogImage = ? ,
17
+ ~ogImage = "/static/Art-3-rescript-launch.jpg" ,
18
18
~version : option <Url .version >= ?,
19
19
) => {
20
+ let ogImage = "https://rescript-lang.org" ++ ogImage
21
+
20
22
let title = switch title {
21
23
| None
22
24
| Some ("" ) => siteName
@@ -55,19 +57,15 @@ let make = (
55
57
<meta key = "og:locale" property = "og:locale" content = ogLocale />
56
58
<meta key = "og:title" property = "og:title" content = ogTitle />
57
59
<meta key = "og:description" property = "og:description" content = ogDescription />
58
- {switch ogImage {
59
- | Some (ogImage ) => <meta key = "og:image" property = "og:image" content = ogImage />
60
- | None => React .null
61
- }}
60
+ <meta key = "og:image" property = "og:image" content = ogImage />
61
+
62
62
/* Twitter Meta */
63
63
<meta key = "twitter:title" name = "twitter:title" content = title />
64
64
<meta key = "twitter:description" name = "twitter:description" content = description />
65
65
<meta key = "twitter:site" name = "twitter:site" content = "@reasonml" />
66
+ <meta key = "twitter:image" property = "og:image" content = ogImage />
66
67
<meta key = "twitter:creator" name = "twitter:creator" content = "@ReasonAssoc" />
67
- <meta property = "og:image:type" content = "image/jpeg" />
68
68
<meta key = "twitter:card" name = "twitter:card" content = "summary_large_image" />
69
- /* TODO: Undo this later */
70
- /* <meta key="twitter:image" property="twitter:image" content=ogImage /> */
71
69
<link rel = "alternate" type_ = "application/rss+xml" title = "ReScript Blog" href = "/blog/feed.xml" />
72
70
// Docsearch meta tags
73
71
<meta
0 commit comments