Found while tuning a real shop for search engines.
A product with variants is a schema.org ProductGroup, with one Product per variant: its own price, SKU, size or color, photo and stock. variesBy comes from choose: / choose_group: when they're Size, Color, Material or Pattern.
Brand: the product's brand:, else the collection page's, else the site's name.
Fix: a collection's list page took its pages' layout for structured data, so the shop page (/products/) was described as a Product called "Shop".
A page with photos: and no image: uses its first photo for link previews instead of a drawn card.
A tag page with its own content file (content/tags/.md) gets a card. Generated tag pages still don't, so big archives don't grow a card per tag.
Starter head: product pages say og:type product with product:price:amount / currency (new price function); the home page's title adds its own title when it differs from the site's name.
gofmt, go vet and go test pass locally. Every other site builds the same except where it has shelves or products.
Found while tuning a real shop for search engines.
- A product with variants is a schema.org ProductGroup, with one Product per variant: its own price, SKU, size or color, photo and stock. `variesBy` comes from `choose:` / `choose_group:` when they're Size, Color, Material or Pattern.
- Brand: the product's `brand:`, else the collection page's, else the site's name.
- Fix: a collection's list page took its pages' layout for structured data, so the shop page (/products/) was described as a Product called "Shop".
- A page with `photos:` and no `image:` uses its first photo for link previews instead of a drawn card.
- A tag page with its own content file (content/tags/<tag>.md) gets a card. Generated tag pages still don't, so big archives don't grow a card per tag.
- Starter head: product pages say `og:type product` with `product:price:amount` / `currency` (new `price` function); the home page's title adds its own title when it differs from the site's name.
gofmt, go vet and go test pass locally. Every other site builds the same except where it has shelves or products.
A product with variants is now a schema.org ProductGroup with one Product
per variant (its own price, SKU, size or color, photo and stock), which is
how search engines want variants described. The brand is the product's
brand:, else its collection page's, else the site's name. A collection's
list page no longer takes its pages' layout, so the shop page isn't
described as a product.
A page with photos: and no image: uses its first photo for link previews
instead of a drawn card. A tag page with a content file of its own gets a
card. The starter's head marks product pages og:type product with the price
(the new price function), and the home page's title adds the page's own
title when it differs from the site's name.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Found while tuning a real shop for search engines.
variesBycomes fromchoose:/choose_group:when they're Size, Color, Material or Pattern.brand:, else the collection page's, else the site's name.photos:and noimage:uses its first photo for link previews instead of a drawn card.og:type productwithproduct:price:amount/currency(newpricefunction); the home page's title adds its own title when it differs from the site's name.gofmt, go vet and go test pass locally. Every other site builds the same except where it has shelves or products.