Skip to content

Commit a302856

Browse files
committed
fix: Improve page titles for branded pages
1 parent 6579f01 commit a302856

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

src/layouts/BaseLayout.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ const {
2222
structuredData = [],
2323
} = Astro.props;
2424
25-
const pageTitle = title === siteConfig.title ? title : `${title} | ${siteConfig.title}`;
25+
const pageTitle = title === siteConfig.title || title.includes(siteConfig.title)
26+
? title
27+
: `${title} | ${siteConfig.title}`;
2628
const canonicalUrl = canonical || new URL(Astro.url.pathname, siteConfig.url).toString();
2729
const robots = noIndex ? "noindex, nofollow" : "index, follow";
2830
const dataBlocks = Array.isArray(structuredData) ? structuredData : [structuredData];

src/pages/blog/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const posts = await getPostSummaries();
88
---
99

1010
<BaseLayout
11-
title="Blog"
11+
title="OpenTaint Blog | Releases, Comparisons, and Technical Notes on Taint Data Flow Analysis"
1212
description="Releases, comparisons, and technical notes on taint data flow analysis."
1313
keywords={["opentaint blog", "taint analysis articles", "sast comparison", "java security blog", "static analysis guides"]}
1414
>

src/pages/index.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ const structuredData = [
5353
---
5454

5555
<BaseLayout
56-
title="The open source taint analysis engine for the AI era"
56+
title="OpenTaint | The Open Source Taint Analysis Engine for the AI Era"
5757
description="The open source taint analysis engine for the AI era. Formal inter-procedural taint analysis — finds what pattern matching engines miss, enacts what LLM agents discover as rules, scales where neither can alone."
5858
keywords={defaultKeywords}
5959
structuredData={structuredData}

0 commit comments

Comments
 (0)