Upgrading

JAAB is released with JAAD and the other JAAMD packages, on one version. Upgrade it, and JAAD beside it on a site with both:

npm install @jaamd/jaab@latest
pnpm add @jaamd/jaab@latest
yarn add @jaamd/jaab@latest
bun add @jaamd/jaab@latest

Then run a build and read below the changes since the version you upgrade from.

From 1.2

Language directories

Directories named after languages under blog/ now make one blog per language. A blog in one language is affected only when its posts sit in such directories: two of them, as it/ and id/, or one that lang names, as en/ on an English blog. Its posts then move to each language’s addresses, or the build stops with jaab: mixed blog tree.

Keep them directories of posts with locales:

locales: false,

A layout of your own

A layout gets the page’s locale and its alternates in each language, for a switcher; getPosts() takes a language, getPosts('it'). A blog without language directories has the site’s lang and no alternates, so a layout written for 1.2 needs no change.