@@ -25,15 +25,15 @@ export default defineConfig({
25
25
const head : HeadConfig [ ] = [ ]
26
26
27
27
head . push ( [ 'meta' , { property : 'og:title' , content : pageData . frontmatter . title } ] )
28
- head . push ( [ 'meta' , { property : 'og:url' , content : path . join ( hostname , page . replace ( '.md' , '.html' ) ) } ] )
28
+ head . push ( [ 'meta' , { property : 'og:url' , content : new URL ( page . replace ( '.md' , '.html' ) , hostname ) . toString ( ) } ] )
29
29
head . push ( [ 'meta' , { property : 'og:description' , content : pageData . frontmatter . description } ] )
30
30
head . push ( [ 'meta' , { property : 'og:type' , content : 'website' } ] )
31
- head . push ( [ 'meta' , { property : 'twitter:card' , content : 'summary ' } ] )
31
+ head . push ( [ 'meta' , { property : 'twitter:card' , content : 'summary_large_image ' } ] )
32
32
head . push ( [ 'meta' , { property : 'twitter:site' , content : '@purista_js' } ] )
33
- head . push ( [ 'meta' , { property : 'twitter:creator' , content : '@swessel78 ' } ] )
33
+ head . push ( [ 'meta' , { property : 'twitter:creator' , content : '@purista_js ' } ] )
34
34
35
35
if ( pageData . frontmatter . image ) {
36
- head . push ( [ 'meta' , { property : 'og:image' , content : path . join ( hostname , pageData . frontmatter . image ) } ] )
36
+ head . push ( [ 'meta' , { property : 'og:image' , content : new URL ( pageData . frontmatter . image , hostname ) . toString ( ) } ] )
37
37
} else {
38
38
head . push ( [ 'meta' , { property : 'og:image' , content : `https://ogpreview-ten.vercel.app/api/og?title=${ encodeURIComponent ( pageData . frontmatter . title ) } &description=${ encodeURIComponent ( pageData . frontmatter . description ) } ` } ] )
39
39
}
0 commit comments