website-search
Use when applies to sites with internal site search functionality. Use when optimizing branded search result appearance or adding structured data for the first time.
- License 许可
- MIT
- 最近更新
- 2026-10-31
- Stars
- ★ 7.5w
- Forks
- 6.8k
01 前言 Front Matter
- name
- website-search
- metadata
- { "url": "https://frontendchecklist.io/rules/seo/website-search", "source": "frontendchecklist.io", "category": "seo", "priority": "low", "difficulty": "beginner", "estimatedTime": "10" }
- description
- Use when applies to sites with internal site search functionality. Use when optimizing branded search result appearance or adding structured data for the first time.
02 资源文件 1
- 参考文档references/rule.md3.8 KB
03 SKILL.md 正文
WebSite Search Schema
The Sitelinks Searchbox lets users search your site directly from Google's search results page, reducing friction for brand-aware users and increasing the click-through quality from branded queries.
Quick Reference
- Add
WebSiteschema withSearchActionto signal that your site has search functionality to Google - This enables Google to show a Sitelinks Searchbox below your brand's search result for branded queries
- The Searchbox only appears at Google's discretion — the schema is a signal, not a guarantee
- The
query-inputproperty must follow the formatrequired name=search_term_string
Check
Check the homepage (or primary entry URL) for a <script type='application/ld+json'> block with "@type": "WebSite" and a potentialAction of type SearchAction. Verify target is a valid search URL template and query-input is correctly set.
Fix
Add WebSite JSON-LD schema to the homepage <head>. Set url to the canonical-url homepage URL. Set potentialAction with SearchAction, target pointing to your search results URL with {search_term_string} placeholder, and query-input as required name=search_term_string.
Explain
Explain how the WebSite SearchAction schema works, what the Sitelinks Searchbox is, why Google may choose not to show it even with valid schema, and how to construct the search URL template.
Code Review
Review metadata generation, rendered HTML, structured data, and response headers related to WebSite Search Schema. Flag exact routes or templates where search-facing output violates the rule, and describe how to verify the final page output.
For full implementation details, code examples, and framework-specific guidance,
see references/rule.md.
Rule page: https://frontendchecklist.io/rules/seo/website-search
04 同仓库更多 Skills
zoom-reflow
Use when reviewing rendered HTML, interactive components, or design-system patterns related to Support content reflow at 400% zoom. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.
ymyl-detection
Use when applies to any site in health, medicine, finance, law, safety, news, or similar fields. Use when auditing content quality for sites in YMYL categories or investigating why high-quality-seeming content underperforms.
x-frame-options
Use when reviewing HTTP response headers for clickjacking protection on any web application with authenticated user actions.
x-content-type
Use when auditing HTTP response headers on any web server or CDN for security hardening.
word-count
Use when applies to key landing pages, blog posts, product pages, and any page targeting competitive queries. Use when diagnosing poor rankings or after a Google Helpful Content update.
webpagetest
Use when reviewing templates, rendered HTML, or shared components related to Analyze performance with WebPageTest. Validate the final browser-facing markup, not just the source framework abstraction.