Skip to content

fix(seo): dedupe " | Kestra" title suffix (resources template)#5161

Open
vfanucci wants to merge 2 commits into
mainfrom
seo/fix-title-suffix-resources
Open

fix(seo): dedupe " | Kestra" title suffix (resources template)#5161
vfanucci wants to merge 2 commits into
mainfrom
seo/fix-title-suffix-resources

Conversation

@vfanucci

Copy link
Copy Markdown
Contributor

Item 2 of #5077<title> suffix has two owners

The layout unconditionally appended | Kestra to every metaTitle, producing | Kestra | Kestra on pages whose front-matter already carries the suffix (house convention in the /resources/ content pipeline). Side effect: twitter:image:alt / og:image:alt inherited the doubled title.

Fix

Strip any existing | Kestra suffix before re-appending, so the template is the single owner of the suffix (the issue's recommendation). Robust: works whether or not front-matter includes the suffix — no content migration required to stop the duplication today.

src/components/layout.astro — one-block change.

Acceptance

  • Exactly one | Kestra on every page. ✅
  • <title> length is now driven solely by the front-matter metaTitle (content pipeline still enforces its own ≤51-char budget).

Part of the 4-PR set for #5077 (order: 2 → 4 → 1+3).

🤖 Generated with Claude Code

The layout unconditionally appended " | Kestra" to every metaTitle,
producing " | Kestra | Kestra" on pages whose front-matter already
carried the suffix (house convention in the /resources/ content
pipeline). Strip any existing suffix before re-appending so the
template is the single owner of it.

Fixes item 2 of #5077.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

☁️ Cloudflare Worker Preview Deployed!

🔗 https://ks-seo-fix-title-suffix-resources-docs.kestra-io.workers.dev
🔗 https://da710124-docs.kestra-io.workers.dev

## 🔦 Lighthouse Benchmark

Tested: http://localhost:8787 on 2026-07-17 07:24 UTC
Compared against main baseline from 2026-07-16

Scores (0–100, higher is better)

Page Performance Accessibility Best Practices SEO
Home 59 🔻 -29 84 54 92
Pricing 97 92 54 100
Enterprise 95 83 54 100
Cloud 90 88 54 100
About Us 99 🟢 +15 91 54 100
Docs Landing 93 88 54 92
Contribute to Kestra (simple docs) 97 88 54 92
Flow (full featured docs) 93 90 54 92
Blog Index 75 91 54 100
Blog Post (sample) 89 88 54 100
VS Page (sample) 97 88 54 100
Plugins Landing 93 81 54 92
Plugin Page (sample) 96 88 54 100
Plugin Debug Page (sample) 0 🔻 -95 88 54 100
Plugin Debug Return Page (sample) 93 88 54 100
Blueprints Landing 90 80 54 🔻 -19 92
Blueprint Audit Logs CSV Export 66 92 54 100

Core Web Vitals (lower is better)

Page LCP FCP TBT CLS Speed Index
Home 1.31 s 0.91 s 1227 ms 🔻 0.002 3.10 s 🔻
Pricing 1.24 s 0.53 s 44 ms 0.000 0.71 s
Enterprise 1.47 s 0.58 s 27 ms 0.000 🟢 0.74 s
Cloud 2.01 s 0.56 s 46 ms 0.000 0.88 s
About Us 0.97 s 🟢 0.64 s 21 ms 0.000 0.77 s
Docs Landing 1.56 s 0.54 s 114 ms 0.000 0.90 s
Contribute to Kestra (simple docs) 1.20 s 0.50 s 65 ms 0.000 🟢 0.75 s
Flow (full featured docs) 1.38 s 0.58 s 129 ms 0.000 1.14 s
Blog Index 8.84 s 0.57 s 29 ms 🟢 0.000 0.84 s
Blog Post (sample) 2.18 s 🔻 0.56 s 27 ms 0.000 0.74 s
VS Page (sample) 1.06 s 0.60 s 54 ms 🔻 0.064 0.70 s
Plugins Landing 1.03 s 0.57 s 80 ms 0.000 2.20 s
Plugin Page (sample) 0.99 s 0.51 s 32 ms 0.051 1.66 s
Plugin Debug Page (sample) 0.00 s 🟢 0.00 s 🟢 0 ms 🟢 0.000 🟢 0.00 s 🟢
Plugin Debug Return Page (sample) 1.12 s 0.61 s 137 ms 🔻 0.025 1.81 s
Blueprints Landing 1.60 s 🔻 0.83 s 🔻 56 ms 🟢 0.000 1.94 s
Blueprint Audit Logs CSV Export 1.00 s 0.65 s 223 ms 0.483 2.04 s
Legend

🟢 improved  ·  🔻 regressed  ·  (blank) no significant change
Score threshold: ±10 pts  ·  Metric threshold: ±30% of baseline

@vfanucci
vfanucci requested a review from iitzIrFan July 16, 2026 14:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants