loco-rs 1.0.1

The one-person framework for Rust
Documentation
---
const { title = 'Loco — the one-person framework for Rust', description = '' } = Astro.props;
import '../styles/global.css';
---
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <title>{title}</title>
  <meta name="description" content={description} />
  <meta property="og:type" content="website" />
  <meta property="og:title" content={title} />
  <meta property="og:description" content={description} />
  <meta name="twitter:card" content="summary" />
  <meta name="twitter:title" content={title} />
  <meta name="twitter:description" content={description} />
  <link rel="icon" href="/favicon-32x32.png" />
  <script is:inline>
    // Theme restore is best-effort: localStorage can throw (sandboxed
    // iframes, strict privacy modes), and that must never block the
    // .js class add below.
    //
    // Shares Starlight's own `starlight-theme` localStorage key (see
    // @astrojs/starlight/components/ThemeProvider.astro) so the theme
    // picked on a marketing page persists into /docs and vice versa —
    // both surfaces set `data-theme` on <html>, but without a shared key
    // the choice wouldn't survive navigation between them. Starlight
    // stores '' for "auto"; treat that the same as "unset" and fall back
    // to the prefers-color-scheme rule in tokens.css, same as before.
    try {
      const t = localStorage.getItem('starlight-theme');
      if (t === 'light' || t === 'dark') document.documentElement.setAttribute('data-theme', t);
    } catch (e) {}
    // Gate JS-only styling (e.g. scroll-reveal fade-ups) behind this class so
    // content is never hidden when JavaScript is unavailable.
    document.documentElement.classList.add('js');
  </script>
</head>
<body><slot /></body>
</html>