File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,18 @@ import Splash from "~/components/splash.astro";
9
9
import Timetable from " ~/components/timetable.astro" ;
10
10
import " ~/styles/index.css" ;
11
11
import Suponsor from " ~/components/suponsor.astro" ;
12
+ import path from " path" ;
12
13
13
14
const { generator, site } = Astro ;
14
15
const description = " VS Code Conference Japan 2024 - 2024/04/20 Sat." ;
15
16
const title = " VS Code Conference Japan 2024" ;
17
+ const socialImageUrl = new URL (
18
+ path .join (
19
+ import .meta .env .BASE_URL ,
20
+ " social.png" ,
21
+ site ?.toString () ?? " localhost:4321" ,
22
+ ),
23
+ );
16
24
---
17
25
18
26
<!doctype html >
@@ -35,7 +43,7 @@ const title = "VS Code Conference Japan 2024";
35
43
<meta property =" og:title" content ={ title } />
36
44
<meta property =" og:type" content =" website" />
37
45
<meta property =" og:description" content ={ description } />
38
- <meta property =" og:image" content =`${ site }/${ import . meta . env . BASE_URL }/social.png` />
46
+ <meta property =" og:image" content =" socialImageUrl " />
39
47
<meta property =" og:url" content ={ site } />
40
48
<meta name =" twitter:card" content =" summary" />
41
49
<meta name =" twitter:site" content =" @vscodejp" />
You can’t perform that action at this time.
0 commit comments