Skip to content

Add support for microdata #1

@royalicing

Description

@royalicing

See:

ListWith(Ol, schemaorg.BreadcrumbList)(
  Link("/", Span(Text("Root page"), schemaorg.ItemPropName)),
  Link("/category", Span(Text("Category page"), schemaorg.ItemPropName)),
  Span(Span(Text("This page"), schemaorg.ItemPropName)),
)

might produce something akin to:

<ol itemscope itemtype="http://schema.org/BreadcrumbList">
  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
    <a href="/" itemprop="item">
      <span itemprop="name">Root page</span>
    </a>
  </li>
  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
    <a href="/category" itemprop="item">
      <span itemprop="name">Category page</span>
    </a>
  </li>
  <li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">
    <span itemprop="item">
      <span itemprop="name">This page</span>
    </span>
  </li>
</ol>

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions