File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed
Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ interface Props {
3+ title: string
4+ description: string | undefined
5+ favicon: string | undefined
6+ faviconMimeType: string | undefined
7+ keywords: string | undefined
8+ author: string | undefined
9+ robots: string | undefined
10+ }
11+
12+ const {
13+ title,
14+ description,
15+ favicon,
16+ faviconMimeType,
17+ keywords,
18+ author,
19+ robots,
20+ } = Astro .props
21+ ---
22+
23+ <!-- Global Metadata -->
24+ <meta charset =" utf-8" />
25+ <meta name =" viewport" content =" width=device-width, initial-scale=1.0" />
26+ <link rel =" icon" type ={ faviconMimeType } href ={ favicon } />
27+
28+ <!-- Primary Meta Tags -->
29+ <title >{ title } </title >
30+ <meta name =" title" content ={ title } />
31+ { description && <meta name = " description" content = { description } />}
32+
33+ <!-- Dynamic Meta Tags -->
34+ { keywords && <meta name = " keywords" content = { keywords } />}
35+ <meta name =" author" content ={ author } />
36+ { robots && <meta name = " robots" content = { robots } />}
37+ <meta name =" generator" content ={ Astro .generator } />
You can’t perform that action at this time.
0 commit comments