22import " ../styles/bootstrap.scss" ;
33import Footer from " ../components/Footer.astro" ;
44import Nav from " ../components/Nav.astro" ;
5- import { SITE_TITLE } from " ../constants" ;
5+ import { SITE_TITLE , SITE_DESCRIPTION } from " ../constants" ;
66const { title, description } = Astro .props ;
77import { ClientRouter , fade } from " astro:transitions" ;
88---
@@ -18,7 +18,7 @@ import { ClientRouter, fade } from "astro:transitions";
1818
1919 <meta name =" viewport" content =" width=device-width, initial-scale=1" />
2020 <meta name =" author" content =" MapLibre" />
21- <meta name =" description" content ={ description } />
21+ <meta name =" description" content ={ description || SITE_DESCRIPTION } />
2222 <ClientRouter />
2323
2424 <meta
@@ -28,8 +28,8 @@ import { ClientRouter, fade } from "astro:transitions";
2828 <meta property =" og:image:width" content =" 1024" />
2929 <meta property =" og:image:height" content =" 512" />
3030 <meta property =" og:image:alt" content =" MapLibre" />
31- <meta property =" og:title" content ={ title } />
32- <meta property =" og:description" content ={ description } />
31+ <meta property =" og:title" content ={ title || SITE_TITLE } />
32+ <meta property =" og:description" content ={ description || SITE_DESCRIPTION } />
3333 <meta
3434 property =" og:url"
3535 content ={ ` https://maplibre.org${Astro .url .pathname } ` }
@@ -38,8 +38,11 @@ import { ClientRouter, fade } from "astro:transitions";
3838 <meta name =" twitter:card" content =" summary_large_image" />
3939 <meta name =" twitter:site" content =" @maplibre" />
4040 <meta name =" twitter:creator" content =" @maplibre" />
41- <meta name =" twitter:title" content ={ title } />
42- <meta name =" twitter:description" content ={ description } />
41+ <meta name =" twitter:title" content ={ title || SITE_TITLE } />
42+ <meta
43+ name =" twitter:description"
44+ content ={ description || SITE_DESCRIPTION }
45+ />
4346 <meta
4447 name =" twitter:image:src"
4548 content =" https://maplibre.org/img/share-image.png"
0 commit comments