Skip to content

Commit a35fa6c

Browse files
Merge pull request #16 from felixgollnhuber/codex/zeige-tempollapp-im-titel
Fix browser titles to always include tempoll.app
2 parents 187f9cb + 05d0609 commit a35fa6c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/app/layout.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const headingFont = Space_Grotesk({
2424
});
2525

2626
const defaultLogoSrc = "/tempoll-logo.png";
27+
const browserTitleBrand = "tempoll.app";
2728
const hasDefaultLogo = existsSync(
2829
path.join(process.cwd(), "public", "tempoll-logo.png"),
2930
);
@@ -33,8 +34,8 @@ export async function generateMetadata(): Promise<Metadata> {
3334

3435
return {
3536
title: {
36-
default: appConfig.appName,
37-
template: `%s · ${appConfig.appName}`,
37+
default: browserTitleBrand,
38+
template: `%s · ${browserTitleBrand}`,
3839
},
3940
description: messages.metadata.description,
4041
icons: {

src/app/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export async function generateMetadata(): Promise<Metadata> {
3636
const { messages } = await getServerI18n();
3737

3838
return {
39-
title: messages.metadata.homeTitle,
39+
title: `${messages.metadata.homeTitle} · tempoll.app`,
4040
description: messages.metadata.description,
4141
};
4242
}

0 commit comments

Comments
 (0)