| 1 | --- |
| 2 | // Shared shell with the sitemap-ish nav: every page links every other page, |
| 3 | // so the suite can crawl the whole site through anchors alone. |
| 4 | interface Props { |
| 5 | title: string; |
| 6 | } |
| 7 | const { title } = Astro.props; |
| 8 | --- |
| 9 | |
| 10 | <html lang="en"> |
| 11 | <head> |
| 12 | <meta charset="utf-8" /> |
| 13 | <meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 14 | <title>{title}</title> |
| 15 | </head> |
| 16 | <body> |
| 17 | <nav id="site-nav"> |
| 18 | <a href="/" id="nav-home">Home</a> |
| 19 | <a href="/about/" id="nav-about">About</a> |
| 20 | <a href="/blog/" id="nav-blog">Blog</a> |
| 21 | <a href="/blog/first-post/" id="nav-first-post">First post</a> |
| 22 | <a href="/blog/second-post/" id="nav-second-post">Second post</a> |
| 23 | <a href="/counter/" id="nav-counter">Counter</a> |
| 24 | </nav> |
| 25 | <main> |
| 26 | <slot /> |
| 27 | </main> |
| 28 | </body> |
| 29 | </html> |