Product

Any offered product or service. For example: a pair of shoes; a concert ticket; the rental of a car; a haircut; or an episode of a TV show streamed online.

Settings

You can set product in config/_default/params.toml:

params.toml
# SEO (@hyas/seo)
[seo]
  [seo.schemas]
    type = "Organization" # Organization (default) or Person
    logo = "favicon-512x512.png" # Logo of Organization — favicon-512x512.png (default)
    name = "Hyas" # Name of Organization or Person
    sameAs = ["https://github.com/gethyas/hyas", "https://fosstodon.org/@hyas"] # E.g. ["https://github.com/gethyas/hyas", "https://fosstodon.org/@hyas"]
    images = ["cover.png"] # ["cover.png"] (default)
    article = [] # Article sections
    newsArticle = [] # NewsArticle sections
    blogPosting = ["blog"] # BlogPosting sections
    product = ["themes"] # Product sections

You can set currency, price, and availability in the frontmatter of a page:

---
seo:
  title: "" # custom title (optional)
  description: "" # custom description (recommended)
  canonical: "" # custom canonical URL (optional)
  robots: "" # custom robot tags (optional)
  structured_data:
    product:
      currency: USD
      price: 0
      availability: https://schema.org/OnlineOnly
---

Generated meta tag

Hyas SEO generates the following meta tag (if applicable) — for example:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "Product",
      "name": "Doks",
      "description": "Doks theme for Hyas sites.",
      "brand": {
        "@type": "Brand",
        "name": "Hyas"
      },
      "image": [
        {
          "@id": "https://gethyas.com/themes/doks/featured-doks.png"
        }
      ],
      "offers": {
        "@type": "Offer",
        "url": "https://gethyas.com/themes/doks/",
        "priceCurrency": "USD",
        "price": "0",
        "availability": "https://schema.org/OnlineOnly"
      }
    }
  ]
}
</script>

Resources