forked from pdsls.dev/pdsls
this repo has no description

custom title

Changed files
+11 -7
src
-1
index.html
··· 9 9 <meta property="og:url" content="https://pdsls.dev" /> 10 10 <meta property="og:description" content="Browse and manage atproto repositories" /> 11 11 <meta property="description" content="Browse and manage atproto repositories" /> 12 - <title>PDSls</title> 13 12 <script> 14 13 if ( 15 14 localStorage.theme === "dark" ||
+11 -6
src/layout.tsx
··· 7 7 import { Search } from "./components/search.jsx"; 8 8 import { AccountManager } from "./components/account.jsx"; 9 9 import { resolveHandle } from "./utils/api.js"; 10 - import { Meta, MetaProvider } from "@solidjs/meta"; 10 + import { Meta, MetaProvider, Title } from "@solidjs/meta"; 11 11 import { kawaii, Settings } from "./components/settings.jsx"; 12 12 import { Handle } from "@atcute/lexicons"; 13 13 import { copyNotice } from "./utils/copy.js"; 14 + 15 + const customTitle: Record<string, string> = { 16 + "did:plc:hx53snho72xoj7zqt5uice4u": "wrenls", 17 + }; 14 18 15 19 const Layout = (props: RouteSectionProps<unknown>) => { 16 20 const params = useParams(); ··· 27 31 28 32 return ( 29 33 <div id="main" class="m-4 flex flex-col items-center text-slate-900 dark:text-slate-100"> 30 - <Show when={location.pathname !== "/"}> 31 - <MetaProvider> 34 + <MetaProvider> 35 + <Show when={location.pathname !== "/"}> 32 36 <Meta name="robots" content="noindex, nofollow" /> 33 - </MetaProvider> 34 - </Show> 37 + </Show> 38 + <Title>{customTitle[params.repo] ?? "PDSls"}</Title> 39 + </MetaProvider> 35 40 <div class="mb-2 flex w-[21rem] items-center sm:w-[24rem]"> 36 41 <div class="flex basis-1/3 gap-x-2"> 37 42 <A href="/jetstream"> ··· 43 48 </div> 44 49 <div class="flex basis-1/3 items-center justify-center text-center"> 45 50 <A href="/" class="font-mono font-bold hover:underline"> 46 - PDSls 51 + {customTitle[params.repo] ?? "PDSls"} 47 52 </A> 48 53 <Show when={localStorage.kawaii === "true" || kawaii()}> 49 54 <a