Skip to main content

Module seo

Module seo 

Source
Expand description

SEO utilities and JSON-LD structured data generators.

Provides structured data schemas for rich results in search engines:

  • Organization schema (sitewide)
  • WebSite schema with search action
  • SoftwareApplication schema (Studio page)
  • Course schema (Learn page)
  • Article schema (News articles)
  • FAQPage schema (Guide page)
  • 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§

BreadcrumbItem
Breadcrumb item for schema generation
JsonLdMultipleProps
Properties for the JsonLdMultiple component.
JsonLdProps
Properties for the JsonLd component.
PageHeadProps
Properties for the PageHead component.
PageMeta
Page metadata for SEO

Functions§

JsonLd
Render JSON-LD script tag for a schema
JsonLdMultiple
Render multiple JSON-LD schemas
PageHead
Per-page head tags: title, description, Open Graph, Twitter Card, canonical.
article_schema
Generate Article schema for news articles
breadcrumb_schema
Generate BreadcrumbList schema
contact_schema
Generate ContactPage schema (for Contact page)
course_schema
Generate Course schema (for Learn page)
faq_schema
Generate FAQPage schema
organization_schema
Generate Organization schema (used on all pages)
profile_page_schema
Generate ProfilePage schema for user profile
roadmap_schema
Generate ItemList schema for Roadmap page
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