Expand description
SEO utilities and JSON-LD structured data generators.
Provides structured data schemas for rich results in search engines:
- Organization schema (sitewide), and with a sales contact point (Pricing page)
- WebSite schema with search action
- SoftwareApplication schema (Studio page)
- Course schema (Learn page)
- Article schema (News articles)
- FAQPage schema (Landing and Pricing pages)
- BreadcrumbList schema (all pages)
- TechArticle schema (Crates page)
§Usage
use logicaffeine_web::ui::seo::{organization_schema, breadcrumb_schema, BreadcrumbItem};
let org_json = organization_schema();
let breadcrumbs = breadcrumb_schema(&[
BreadcrumbItem { name: "Home", path: "/" },
BreadcrumbItem { name: "Learn", path: "/learn" },
]);Re-exports§
pub use PageHead_completions::Component::PageHead;pub use JsonLd_completions::Component::JsonLd;pub use JsonLdMultiple_completions::Component::JsonLdMultiple;
Modules§
- pages
- Page-specific metadata definitions
Structs§
- Breadcrumb
Item - Breadcrumb item for schema generation
- Json
LdMultiple Props - Properties for the
JsonLdMultiplecomponent. - Json
LdProps - Properties for the
JsonLdcomponent. - Page
Head Props - Properties for the
PageHeadcomponent. - Page
Meta - Page metadata for SEO
Functions§
- JsonLd
- Render JSON-LD script tag for a schema
- Json
LdMultiple - Render multiple JSON-LD schemas
- Page
Head - Per-page head tags: title, description, Open Graph, Twitter Card, canonical.
- article_
schema - Generate Article schema for news articles
- breadcrumb_
schema - Generate BreadcrumbList schema
- course_
schema - Generate Course schema (for Learn page)
- faq_
schema - Generate FAQPage schema from (question, answer) pairs. Built as JSON, so a quote in an answer is escaped rather than ending the string.
- organization_
contact_ schema - Generate Organization schema that names where to ask for a price: the sales
ContactPointreached atemailand at the pagecontact_path. - organization_
schema - Generate Organization schema (used on all pages)
- roadmap_
schema - Generate ItemList schema for Roadmap page: one
ListItemper timeline card, in page order, each described by its status and the first sentence of its card, so search engines read the roadmap the page shows. - software_
application_ schema - Generate SoftwareApplication schema (for Studio page)
- tech_
article_ schema - Generate TechArticle schema (for Crates documentation)
- webpage_
schema - Generate WebPage schema for generic pages
- website_
schema - Generate WebSite schema with search action