Skip to content

Commit

Permalink
Remove site name from title tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ruchernchong committed Dec 2, 2024
1 parent 3123b96 commit 147e5b9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/cars/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const generateMetadata = async (props: {

const formattedDate = formatDateToMonthYear(month);

const title = "Car Registrations";
const title = "Monthly Car Registrations";
const description = `Breakdown of cars registered in ${formattedDate} by fuel types and vehicle types.`;
const pageUrl = `/cars`;

Expand Down
4 changes: 2 additions & 2 deletions app/coe/(prices)/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import type { WebPage, WithContext } from "schema-dts";

type SearchParams = Promise<{ [key: string]: string | string[] | undefined }>;

const title = "COE Dashboard";
const title = "COE Result";
const description =
"Explore historical trends and bidding results for COE in Singapore.";

Expand Down Expand Up @@ -117,7 +117,7 @@ const COEPricesPage = async (props: { searchParams: SearchParams }) => {
<>
<StructuredData data={structuredData} />
<div className="flex flex-col gap-y-4">
<Typography.H1>COE Results</Typography.H1>
<Typography.H1>COE Result</Typography.H1>
<div className="grid grid-cols-1 gap-4 xl:grid-cols-12">
<div className="xl:col-span-8">
<COEPremiumChart data={data} months={months} />
Expand Down
5 changes: 1 addition & 4 deletions app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,7 @@ const url = new URL(SITE_URL);

export const metadata: Metadata = {
metadataBase: url,
title: {
default: title,
template: `%s | ${title}`,
},
title,
description,
robots: { index: true, follow: true },
openGraph: {
Expand Down

0 comments on commit 147e5b9

Please sign in to comment.