Files
jcoffey-dev e93959d928
ci / go (pull_request) Successful in 59s
ci / editor-ui (pull_request) Successful in 1m23s
Shop: a product's sizes and colors for search engines, and its photo for link previews
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.
2026-10-17 00:11:04 -07:00
..

Shop pack

A small online shop for a HotDog CMS site: a page for each product with its photos, price, description and options, a shop page at /products/, and a "Products" section for any page. Each Buy button opens your payment provider's own checkout (a Stripe Payment Link, a PayPal or Square checkout link), which takes the payment, the address, any tax and sends the receipt.

hotdog-cms pack add shop

Each product (or option) has its own checkout, which suits a shop with a handful of things to sell; a cart is optional (below). Card details never touch your site, and nothing from the provider loads until someone chooses Buy. Products are also written as schema.org Product data, with the price and whether they're in stock, for search engines; a product with sizes or colors is a ProductGroup with one entry per variant (its own price, SKU and stock). The brand is the product's brand:, else the one on content/products/_index.md, else the site's name. A product's first photo is its link preview picture.

Sizes and colors are variants, each with its own price and checkout. A provider whose checkout reads the choice from its address, as Fourthwall's does, gets a size picker that goes straight to checkout, still without a script. hotdog-cms import fourthwall writes the whole catalog from a Fourthwall shop (docs/importing.md).

When the checkout takes several things at once, the shop can have a cart: cart: true in site.yaml, {{ cart }} in the theme's head, {{ cartLink }} in its header, and a page with layout: cart. Product pages then have Add to cart beside Buy now. The cart is kept in the visitor's own browser and reaches the shop only at checkout; its page suggests other products, those sharing a tag with what's in the cart first. Without JavaScript, Buy now still works.

Tags make shelves. A page at content/tags/<tag>.md with layout: shelf gives /tags/<tag>/ its own title and words above that tag's products, in the shop's order, and any other front matter the theme wants to read. The "Products" section's tag field shows one tag's products on any page.