Skip to content

Commit

Permalink
Use qeury yasunori for page title and description
Browse files Browse the repository at this point in the history
  • Loading branch information
tomoya committed Nov 2, 2024
1 parent 4d2f8f1 commit 65be854
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/web/app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ import { type IndexLoader, indexLoader } from "./loader";

export const loader = indexLoader;

export const meta: MetaFunction = () => {
const title = "Awesome Yasunori";
const description = "Welcome to awesome yasunori!";
export const meta: MetaFunction = ({ location }) => {
const searchParams = new URLSearchParams(location.search);
const yasunori = searchParams.get("yasunori") ?? "Yasunori";
const title = `Awesome ${yasunori}`;
const description = `Welcome to awesome ${yasunori}!`;
const url = "https://awesome.yasunori.dev";
return [
{ title },
Expand Down

0 comments on commit 65be854

Please sign in to comment.