~james/core

core/docs/src/components/Header.astro -rw-r--r-- 467 bytes
452f17b7 — james chore(import): snapshot james.dad.town/core at f70c71c7696a 15 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
// only shown on narrow screens and on pages without a sidebar (the landing page).
// pages with a sidebar carry search in the sidebar, so it renders here only when
// there is none: one search per page
import Search from "./Search.astro";
import SiteTitle from "./SiteTitle.astro";

const { hasSidebar } = Astro.locals.starlightRoute;
---

<div class="docs-header">
  <SiteTitle />
  <div class="docs-header-end">
    {!hasSidebar && <Search />}
  </div>
</div>