Layout.astro
1---
2import '../styles/global.css';
3
4interface Props {
5 title?: string;
6 description?: string;
7 noindex?: boolean;
8}
9
10const {
11 title = 'sovrn — independent email for small business',
12 noindex = false,
13 description = 'Business email on your own domain, free of big-tech landlords. Hosted in the EU if you choose, and part of the Atmosphere: one identity for a whole ecosystem of independent apps.',
14} = Astro.props;
15---
16
17<!doctype html>
18<html lang="en">
19 <head>
20 <meta charset="utf-8" />
21 <meta name="viewport" content="width=device-width, initial-scale=1" />
22 <meta name="description" content={description} />
23 <meta name="theme-color" content="#e9b816" />
24 {noindex && <meta name="robots" content="noindex" />}
25 <meta property="og:title" content={title} />
26 <meta property="og:description" content={description} />
27 <meta property="og:type" content="website" />
28 <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
29 <link rel="icon" type="image/png" sizes="64x64" href="/favicon.png" />
30 <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
31 <meta name="generator" content={Astro.generator} />
32 <title>{title}</title>
33 </head>
34 <body>
35 <a class="skip-link" href="#main">Skip to content</a>
36 <slot />
37 </body>
38</html>