Skip to content

Commit 33f0338

Browse files
committed
Tweak browser title for UI landing
1 parent 1727a4d commit 33f0338

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

ui/src/layouts/Layout.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import '../styles/global.css';
55
66
interface Props {
77
title: string;
8+
titleSuffix?: string;
89
}
910
10-
const { title } = Astro.props;
11+
const { title, titleSuffix = "Ultimate Python Guide" } = Astro.props;
1112
const lang = getLangFromUrl(Astro.url);
1213
---
1314

@@ -19,7 +20,7 @@ const lang = getLangFromUrl(Astro.url);
1920
<meta name="generator" content={Astro.generator} />
2021

2122
<!-- Meta tags for SEO -->
22-
<title>{title} | Ultimate Python Guide</title>
23+
<title>{title} | {titleSuffix}</title>
2324
<meta name="description" content="An interactive, hands-on, zero-dependency guide to learning Python with beautiful, clean examples." />
2425

2526
<!-- Google Fonts: Inter (sans-serif), Lora (serif), Fira Code (monospaced) -->

ui/src/pages/[lang]/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const t = useTranslations(activeLang);
1717
const totalLessons = lessons.length;
1818
---
1919

20-
<Layout title={t('site.title')}>
20+
<Layout title={t('site.title')} titleSuffix="Home">
2121
<div class="app-container" id="app-container">
2222
<Sidebar activeLang={activeLang} />
2323

0 commit comments

Comments
 (0)