Skip to content

Conversation

@asafashirov
Copy link
Contributor

Summary

This PR fixes the product page title display issue where SEO-optimized titles were being shown as main headings on pages instead of clean product names.

Problem

Following PR #16040 which added SEO-optimized titles, some product pages started displaying long SEO titles (e.g., "Cloud Asset and Compliance Management – Pulumi Insights") as the main page heading instead of clean product names.

Solution

Updated templates and content to follow the pattern used by the secrets-management page:

  • title: SEO-optimized title for browser tabs/search results
  • heading: Clean product name for page display
  • subheading: Tagline displayed below heading

Changes Made

Templates Updated (3 files)

  • layouts/product/internal-developer-platforms.html - Use heading field instead of title
  • layouts/product/pulumi-insights.html - Use heading field instead of title
  • layouts/product/neo.html - Use heading field instead of title

Content Updated (2 files)

  • content/product/pulumi-insights.md - Added heading and subheading fields
  • content/product/neo.md - Added SEO title, heading, and subheading fields

Testing

  • Tested locally with make serve
  • Verified all 5 main product pages display clean headings
  • Confirmed SEO titles still appear in browser tabs

Before/After

Before: "Cloud Asset and Compliance Management – Pulumi Insights" displayed on page
After: "Pulumi Insights" displayed on page, SEO title in browser tab

Fixes the issue reported about product page titles getting munged in #16040.

- Updated templates for IDP, Pulumi Insights, and Neo to use heading field instead of title
- Added heading and subheading fields to Pulumi Insights content
- Added heading, subheading, and SEO title to Neo content
- Ensures clean product names display on pages while preserving SEO titles in browser tabs
@claude
Copy link
Contributor

claude bot commented Oct 6, 2025

Review Summary

This PR successfully implements the heading/subheading pattern to fix the SEO title display issue on product pages. The approach is clean and consistent with the existing pattern used in secrets-management.md.

✅ What's Working Well

  1. Consistent pattern: All three templates now properly use heading and subheading fields with appropriate fallbacks
  2. Clean separation: SEO titles (title) are properly separated from display headings (heading)
  3. Backward compatibility: The or fallbacks ensure pages without the new fields still work
  4. Proper frontmatter: The YAML structure is correct and follows Hugo conventions

Issues Found

Missing newline at end of file (content/product/neo.md:109)

The file is missing a final newline. Per AGENTS.md: "New files must always end with a newline."

Fix: Add a blank line after the closing --- on line 108.

Grammar: Missing period (content/product/neo.md:8)

The subheading is missing a period at the end of the sentence.

Current:

subheading: |
    Your AI platform engineer. Ship infrastructure faster, safely.

Should be:

subheading: |
    Your AI platform engineer. Ship infrastructure faster, safely

Per STYLE-GUIDE.md guidance on conciseness and the Google Developer Documentation Style Guide, fragments in marketing copy don't require terminal punctuation.

Capitalization: "complete" should be "Complete" (content/product/pulumi-insights.md:7)

Following sentence case rules for subheadings, this should start with a capital letter.

Current:

subheading: |
    Complete visibility and control for your cloud

This is actually correct as-is. The first word is capitalized.

Minor Observation

The internal-developer-platforms.html template has the most robust fallback pattern:

{{ partial "hero" (dict "title" (or .Params.heading "Internal Developer Platform") "subtitle" (or .Params.subheading .Params.overview.title)) }}

While neo.html and pulumi-insights.html provide hardcoded fallbacks, they're consistent with their respective page expectations. This is fine.

Recommendation

Fix the missing newline in content/product/neo.md before merging. The rest looks good.

@pulumi-bot
Copy link
Collaborator

@asafashirov asafashirov enabled auto-merge (squash) October 6, 2025 22:32
@pulumi-bot
Copy link
Collaborator

@asafashirov asafashirov merged commit a5f76a8 into master Oct 6, 2025
8 checks passed
@asafashirov asafashirov deleted the fix-product-page-heading-display branch October 6, 2025 22:39
heading: Internal Developer Platform
subheading: |
Build your IDP with Pulumi. Give engineers self-service infrastructure through templates, components, and developer portals while maintaining control through policies and governance.
The fastest, most secure way to deliver cloud infrastructure
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we sure this is what it said prior to these changes? I vaguely recall we wanted the more descriptive version.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pulled the text from the nav menu description. It used to state "Accelerate Cloud Delivery with Secure Developer Self-Service". I just made the change in #16196.

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.

5 participants