1
1
---
2
2
import { GoogleFontsOptimizer } from " astro-google-fonts-optimizer" ;
3
+ import { SEO } from " astro-seo" ;
3
4
import Header from " ../components/Header.astro" ;
4
5
import Footer from ' ../components/Footer.astro' ;
6
+ import { BASE_URL } from " @/consts" ;
7
+
8
+ import * as ufo from ' ufo'
5
9
6
10
const { lang = ' ja' } = Astro .props ;
11
+
12
+ const title = " VimConf 2025" ;
13
+ const description = " VimConf 2025" ;
14
+ const ogImageUrl = ufo .joinURL (BASE_URL , ' og.png' );
7
15
---
8
16
<!DOCTYPE html >
9
17
<html lang ={ lang } >
10
18
<head >
11
19
<meta charset =" utf-8" >
12
- <meta name =" viewport" content =" width=device-width, initial-scale=1" >
13
- <meta name =" description" content =" VimConf 2025" >
14
- <meta name =" author" content =" VimConf 2025" >
15
-
16
- <GoogleFontsOptimizer url =" https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap" >
17
- </GoogleFontsOptimizer >
18
-
19
- <title >VimConf 2025</title >
20
+ <GoogleFontsOptimizer url =" https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap" />
21
+ <SEO
22
+ {title }
23
+ {description }
24
+ openGraph ={ {
25
+ basic:{
26
+ title ,
27
+ type: ' website' ,
28
+ image: ogImageUrl ,
29
+ url: BASE_URL ,
30
+ },
31
+ }}
32
+ twitter ={ {
33
+ title ,
34
+ description ,
35
+ creator: ' @vim_jp' ,
36
+ card: ' summary_large_image' ,
37
+ image: ogImageUrl ,
38
+ }}
39
+ extend ={ {
40
+ link: [{ rel: " icon" , href: ufo .joinURL (BASE_URL , " favicon.svg" ) }],
41
+ }}
42
+ />
20
43
</head >
21
44
<body >
22
45
<Header />
@@ -27,19 +50,19 @@ const { lang = 'ja' } = Astro.props;
27
50
28
51
<style >
29
52
* {
30
- margin: 0;
31
- padding: 0;
32
- box-sizing: border-box;
53
+ margin: 0;
54
+ padding: 0;
55
+ box-sizing: border-box;
33
56
}
34
57
35
58
body {
36
- font-family: "Helvetica Neue",
37
- Arial,
38
- "Hiragino Kaku Gothic ProN",
39
- "Hiragino Sans",
40
- Meiryo,
41
- sans-serif;
42
- line-height: 2.4;
43
- color: #333;
59
+ font-family: "Helvetica Neue",
60
+ Arial,
61
+ "Hiragino Kaku Gothic ProN",
62
+ "Hiragino Sans",
63
+ Meiryo,
64
+ sans-serif;
65
+ line-height: 2.4;
66
+ color: #333;
44
67
}
45
68
</style >
0 commit comments