--- // Starlight's header bar, and under it the five sections of the site as // tabs: the funnel (Start here to Contribute) is the site's structure, so it // sits where every docs site puts its sections. On a phone the tabs stay the // first row of the menu, where the sidebar lists them. // The wanted page is the one call to contribute, in the bar on every page // and every width: on a phone it sits beside the search and menu buttons. import Default from '@astrojs/starlight/components/Header.astro'; const topics = Astro.locals.starlightSidebarTopics?.topics ?? []; const base = import.meta.env.BASE_URL.replace(/\/?$/, '/'); const wanted = `${base}wanted/`; const onWanted = Astro.url.pathname.replace(/\/?$/, '/') === wanted; ---
{ topics.length > 0 && ( ) }