hotdog-cms import fourthwall brings a Fourthwall shop's public products
in as shop pack pages, with the storefront token from
HOTDOG_FOURTHWALL_TOKEN: description and details as Markdown, photos
brought into the site, sizes and colors as variants, collections as
terms of a taxonomy. It's run again whenever the shop changes: products
are matched by id, unchanged pages and photos are left alone, front
matter the site added is kept, and products that left the shop are
listed (deleted with -prune).
The shop pack (1.2.0) takes variants: each with a price and a buy link,
or, when the product has a checkout form (Fourthwall's reads the choice
from its address), a size picker whose Buy now goes straight to the
checkout. Both work without a script. Prices that vary show "From", and
search engines get an AggregateOffer.
cart: true in site.yaml turns on a cart: HotDog's cart script, kept in
the visitor's browser and sent nowhere until checkout, which opens the
shop's checkout with every item (id:quantity, joined). Product pages get
Add to cart beside Buy now; the cart page (layout: cart) lists, changes
and removes items and suggests other products, those sharing a tag
first. Themes put {{ cart }} in the head and {{ cartLink }} in the
header, as the starter now does, and the privacy notice says where the
cart is kept.
Your HotDog CMS site
hotdog-cms serve preview at http://127.0.0.1:8140, rebuilding as you save
hotdog-cms build write the finished site to public/
hotdog-cms check build, then look for broken links and forbidden strings
| Folder | What goes in it |
|---|---|
content/ |
Pages, as Markdown. about.md becomes /about/; a folder such as articles/ is a collection |
layouts/ |
Page shapes. base.html wraps every page; the others fill its main block |
partials/ |
Pieces layouts share: head, nav, footer |
sections/ |
Blocks a page can stack in its front matter (sections:) |
data/ |
YAML or JSON that templates and sections read |
assets/ |
CSS, scripts, fonts. Published with a content hash in the name |
static/ |
Files copied as they are: favicon, .well-known/, images |
public/ is the output. Don't edit it; it's replaced on every build.
The starter's templates, styles and scripts are MIT licensed
(LICENSE-starter.txt), so you can change them, keep them private or sell
sites built on them. Your content is yours.