File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
packages/astro/src/default/layouts Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ interface Props {
9
9
}
10
10
11
11
const { title, description = ' TutorialKit' } = Astro .props ;
12
- const baseURL = import . meta . env . BASE_URL ;
13
- const logoUrl = joinPaths ( baseURL , ' /logo.svg ' );
12
+ const logoUrl = readLogoFile () ;
13
+ const faviconUrl = readFaviconFile ( );
14
14
---
15
15
16
16
<!doctype html >
@@ -22,10 +22,10 @@ const logoUrl = joinPaths(baseURL, '/logo.svg');
22
22
<meta name =" generator" content ={ Astro .generator } />
23
23
<meta name =" og:title" content ={ title } />
24
24
<meta name =" og:description" content ={ description } />
25
- <meta name =" og:image" content ={ logoUrl } />
25
+ { logoUrl ? <meta name = " og:image" content = { logoUrl } /> : null }
26
26
<meta name =" twitter:title" content ={ title } />
27
27
<meta name =" twitter:description" content ={ description } />
28
- <meta name =" twitter:image" content ={ logoUrl } />
28
+ { logoUrl ? <meta name = " twitter:image" content = { logoUrl } /> : null }
29
29
<title >{ title } </title >
30
30
{ faviconUrl ? <link rel = " icon" type = " image/svg+xml" href = { faviconUrl } /> : null }
31
31
<link rel =" preconnect" href =" https://fonts.googleapis.com" />
You can’t perform that action at this time.
0 commit comments