Commit 910c531
authored
Improve homepage structured data and fix schema issues (#16182)
* Fix structured data issues and enhance homepage schemas
Critical Fixes:
- Fix headline extraction to use h1 parameter instead of title
- Remove speakable schemas (not needed for developer tools)
- Fix inaccurate product data (remove hardcoded dates/versions)
- Remove generic 'about Pulumi CLI' from all articles
Homepage Enhancements:
- Add complete Organization schema with address, founders, founding date
- Add knowledge graph links (Wikidata Q122864080, Wikipedia, Crunchbase)
- Represent Pulumi as platform (not just CLI) with all pricing tiers
- Add Infrastructure as Code entity relationships
Results:
- Headlines now match visible content (e.g., 'Configure access to AWS' vs 'Configure access')
- Better knowledge panel eligibility with complete corporate data
- Accurate product pricing and requirements
- Valid JSON-LD that passes schema.org validation
* Add breadcrumb support for Insights, ESC, Copilot, and CrossGuard sections
- Add Pulumi Insights breadcrumb for /docs/insights/ pages
- Add Pulumi ESC breadcrumb for /docs/esc/ pages
- Add Pulumi Copilot breadcrumb for /docs/copilot/ pages
- Add Pulumi CrossGuard breadcrumb for /docs/crossguard/ pages
- Fix nested if-else structure for proper section detection
This ensures proper breadcrumb hierarchy for all documentation sections:
- Before: Home > Documentation > [Page Title]
- After: Home > Documentation > [Product Section] > [Page Title]
Validated with Insights page showing correct 4-level breadcrumb.
* Refine structured data implementation based on thorough review
Headlines:
- Revert to using .Title instead of .Params.h1 for more specific headlines
- H1 is often too broad (e.g., 'Get started with Pulumi and AWS' vs 'Configure access')
- Google recommends concise, specific headlines
Date Fields:
- Remove datePublished/dateModified from docs and tutorials (evergreen content)
- Keep dates for blog posts where they're meaningful
- Google confirms dates are optional, only useful when meaningful
Organization Schema:
- Change from array type to single 'Corporation' type (more specific per Google)
- Corporation inherits all Organization properties
- Maintains all rich details (address, founders, knowledge graph links)
Breadcrumbs:
- Fix Copilot path (actually at /docs/pulumi-cloud/copilot/)
- Replace with Pulumi Cloud breadcrumb for correct hierarchy
HowTo Steps:
- Remove generic, unhelpful steps from tutorials
- Better to have no steps than fake generic ones
- Future improvement: extract real steps from content structure
Results:
- More accurate, specific headlines for better search visibility
- Cleaner schema without meaningless dates on docs
- Proper breadcrumb hierarchy for all sections
- No misleading generic content
* Fix structured data issues identified in PR review
- Fix softwareVersion to read from static file instead of missing config param
Changed from .Site.Params.latest_version to (readFile "static/latest-version")
This matches how the site handles versions throughout via shortcodes
- Add clarifying comments to breadcrumb nesting logic
Makes the complex nested structure more maintainable
Clearly separates main section logic from IaC Clouds additional nesting
- YouTube URL verified as correct (using permanent channel ID format)
These fixes address all issues identified in PR #16182 review:
✓ Critical: Fixed missing site parameter issue
✓ Minor: Added comments for breadcrumb clarity
✓ Verified: YouTube URL is using stable channel ID format
* Enhance structured data for improved AI citations
- Implement FAQPage schema for all FAQ pages (critical for AI visibility)
- Integrate existing VideoObject schema into @graph structure
- Add SOC 2 Type II certification as trust signal to Organization
- Extract real HowTo steps from markdown content instead of placeholders
- Auto-detect FAQ pages by URL pattern for future-proofing
These changes optimize structured data for citations in AI tools
(ChatGPT, Perplexity, Google AI Overviews) by providing detailed,
factual schema markup that these systems can understand and cite.
* Fix trim function syntax errors in Hugo templates
Changed all trim function calls to strings.TrimSpace which doesn't
require a cutset argument. This fixes the Hugo build error:
'wrong number of args for trim: want 2 got 1'
* Fix Hugo 0.135.0 compatibility - use trim with whitespace cutset
The CI uses Hugo 0.135.0 but strings.TrimSpace was introduced in v0.136.3.
Replaced all strings.TrimSpace calls with trim " \t\n\r" which provides
the same functionality and is compatible with Hugo 0.135.0.
This fixes the build error:
'can't evaluate field TrimSpace in type interface {}'1 parent b714f62 commit 910c531
File tree
9 files changed
+466
-152
lines changed- layouts/partials/schema
- collectors
9 files changed
+466
-152
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
| 20 | + | |
45 | 21 | | |
46 | 22 | | |
47 | 23 | | |
| |||
87 | 63 | | |
88 | 64 | | |
89 | 65 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 66 | + | |
| 67 | + | |
103 | 68 | | |
104 | 69 | | |
105 | 70 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
| 106 | + | |
| 107 | + | |
120 | 108 | | |
121 | 109 | | |
122 | 110 | | |
| |||
Lines changed: 47 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
56 | 99 | | |
57 | 100 | | |
58 | 101 | | |
| |||
82 | 125 | | |
83 | 126 | | |
84 | 127 | | |
| 128 | + | |
| 129 | + | |
85 | 130 | | |
86 | | - | |
87 | 131 | | |
88 | 132 | | |
89 | 133 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
0 commit comments