Releases

Every tagged release of the projects, newest first. RSS

November 2026

boxlang-ssg 1.1.1

Patch release: tag pages for tags that come from pagination data entries and for sites with a taxonomies document type, and reserved document type names now fail the build with a clear message. See the notes below.

install-bx-module boxlang-ssg bx-yaml bx-markdown bx-jsoup

Fixed

  • A site with a document type named taxonomies and no taxonomies configured now also gets a tag page for a tag carried only by pages that pagination generates.
  • Tags and taxonomy terms that come from pagination data entries (the struct values merged into each page with size: 1) now get their page: when the final terms differ from those pagination was expanded against, the paginated templates are expanded once more. If pages from that second expansion add yet more terms, the build prints a warning naming the template and the terms without a page.
  • A document whose type is all, tags, byTag or global (in any case) fails the build naming the document, instead of corrupting that collection.
Full notes

A site with a document of type all, tags, byTag or global now fails the build; it previously built with that collection corrupted. Give the document another type.

GitHub ↗ About boxlang-ssg

boxlang-ssg 1.1.0

Adds base URL support, permalink patterns, folder defaults, YAML/CSV data, taxonomies, excerpts, previous/next links, a new command, build --watch and live reload in serve. Sites built with 1.0.0 produce the same output unless they opt in; see Changed and Fixed below.

install-bx-module boxlang-ssg bx-yaml bx-markdown bx-jsoup

Added

  • baseUrl config key: a full URL (https://user.github.io/repo/) or a path prefix (/repo). prc.permalink, pagination hrefs and collection permalinks include the path prefix; prc.outFile does not. New prc.absoluteUrl (a front matter absoluteUrl still wins), derived config.pathPrefix and config.siteUrl (a site's own keys of those names are kept as written), and the template helpers relUrl() and absUrl(), which return an argument with a scheme, or starting with // or #, unchanged (a function of the same name in applicationHelper.bxm wins). A baseUrl starting with // is rejected. serve ignores baseUrl and previews at the root.
  • Templates can read the loaded configuration as config, including custom keys from ssg-config.json.
  • Folder defaults: _defaults.yml, _defaults.yaml or _defaults.json supplies front matter for every document in its folder and below.
  • _data/ also loads .yml, .yaml and .csv files. Two of these files for the same key fail the build; beside a .json file of the same key, one is skipped with a warning.
Full notes
  • permalinks config key: a URL pattern per document type, with the tokens :year, :month, :day, :slug, :name, :title and :dir. An explicit permalink still wins, and a pattern does not apply to index documents or the root 404 document.
  • taxonomies config key: group documents by other front matter keys in collections.taxonomies.<name>.terms and .byTerm. A site with a document type named taxonomies keeps collections.taxonomies as that type's collection until it configures taxonomies; with taxonomies configured, such a document fails the build.
  • prc.excerpt (front matter excerpt, the content before <!--more-->, or the first paragraph of a Markdown document) and prc.previous / prc.next within each type collection.
  • new <title> command with --type, --dir and --draft.
  • build --watch rebuilds whenever the source changes. Changing outputDir while build --watch or serve runs triggers one rebuild, not a rebuild loop.
  • serve reloads open pages in the browser after each rebuild; --no-reload turns it off.
  • The starter has an Atom feed (/feed.xml) and a sitemap (/sitemap.xml), links the feed from its layout, uses relUrl() for its own links so it works under a path prefix, shows excerpts on the home page and previous/next links on posts. Its site title, description and author moved from the layout's front matter to site in ssg-config.json, read as config.site.*.

Changed

  • A file named YYYY-MM-DD-name.md without date or publishDate takes its date from the file name; in 1.0.0 it fell back to the file's modified time. So a post (type: post) whose file name carries a future date and that has no date in front matter is now future-dated, and left out of the build unless --drafts; 1.0.0 published it. A date in a file name that is impossible or unparsable (0000-01-01-, 2026-13-01-) is ignored without a warning.
  • .yml, .yaml and .csv files in _data/ are now loaded into collections.global (1.0.0 ignored them), and a _defaults.yml, _defaults.yaml or _defaults.json file now applies to its folder.
  • Data file keys: .json files load exactly as in 1.0.0, so two .json files with the same key (x.json, x.backup.json) still build and the later one wins. A .yml, .yaml or .csv file with the same key as a .json file is skipped, so the output is unchanged, and the build prints a warning naming both files. Two .yml, .yaml or .csv files with the same key fail the build naming both.
  • Existing custom keys named baseUrl, permalinks or taxonomies in ssg-config.json are now validated and fail the build if they have the wrong shape. Custom siteUrl and pathPrefix keys are kept as written; config.siteUrl and config.pathPrefix show the values derived from baseUrl only when the file does not define them. __ssg is reserved for the generator.
  • Render errors name the file that failed (the view or layout, not only the page) and end with (line N) when BoxLang reports a line. An error in a view or layout says which page was being rendered (<file>: while rendering <page>: <message>) and is reported once per build instead of once per page.

Fixed

  • A tag carried only by pages that pagination generates appeared in collections.tags but got no tag page; pagination over collections.tags now covers it. Tags that come only from the pagination data itself may still be missed.

GitHub ↗ About boxlang-ssg

boxlang-ssg 1.0.0

First release as an installable BoxLang module.

install-bx-module boxlang-ssg bx-yaml bx-markdown bx-jsoup
boxlang module:ssg init my-site
  • Output paths changed to folder-style URLs: posts/x.html is now posts/x/index.html (URL /posts/x/), so sites work on any static host. router.bxs was removed.
  • boxlang-ssg is now a BoxLang module, installed once and run from any site folder with boxlang module:ssg <command>. New commands: init, serve, list, clean; new flags: --source, --verbose, --drafts, --port. Exit codes: 0 success, 1 usage error, 2 build failure.
  • setup.bx and requirements.txt were removed. bx-yaml, bx-markdown and bx-jsoup are declared as dependencies in box.json with caret ranges. install-bx-module does not install declared dependencies, so the install command names them; box install boxlang-ssg (CommandBox) does install them. build and serve check for the three modules at startup and print the install command if one is missing.
Full notes

Fixed

  • Builds failed on BoxLang 1.19 because templates were included by absolute path; site templates are now included through an application mapping.
  • Exceptions are no longer swallowed: a page that fails to render is not written, every failure is reported as file: message, and the build exits 2. The error(), print.greyline(), dump() and abort calls are gone.
  • Pagination wrote page 1 of permalink: /jokes/page/{{page}}/index.html to /jokes/page/index.html/index.html; every page now substitutes its number, and paginationInfo.href values point at files that exist.
  • Paginated pages respect excludeFromCollections in type collections as well as all, and type keys are lower-cased consistently.
  • Discovery matches .md and .bxm by extension rather than by substring, and always skips _includes/, _data/, the output folder, dot-folders at any depth, boxlang_modules/ and node_modules/. Only the root README.md is skipped by default.
  • Front matter without a closing marker, or .md front matter that is not valid YAML, fails the build naming the file; an empty tags: no longer throws.
  • Posts sort newest first by date, then publishDate, then file modified time, without throwing when dates are missing. Future-dated posts are treated as drafts unless --drafts.
  • Tag permalinks use the slugified tag, and the starter links to the URL the tag page is written to.
  • The starter layout uses the page's title and description, falling back to the site values.
  • ssg-config.json is merged over defaults and validated; outputDir must be inside the site root and not the site root itself.
  • bx-markdown is no longer pinned to an exact version.
  • pagination.data resolves against collections only, and a path that does not exist fails the build instead of being created silently.
  • An explicit permalink on a type: post document was ignored when choosing the output file; an explicit permalink now wins for every type.
  • collections.tags and collections.byTag are built in one place from every document with tags that is not excluded from collections.
  • An empty front matter value such as title: left the key null on BoxLang without bx-compat-cfml; it now falls back to the default.
  • The starter's post date and stylesheet cache-buster used CFML date masks (mmm, yyyy-mm-dd), which fail or print minutes on BoxLang without bx-compat-cfml; they now use MMM and yyyy-MM-dd.

Changed

  • collections.tags is now sorted case-insensitively.
  • Generated pagination pages now take part in type and tag collections and honour excludeFromCollections.
  • A paginated template with no explicit permalink bases its pages on its own resolved permalink; size: 1 without a placeholder writes page/<n>/ instead of overwriting one file.
  • minify and tidyHtml apply to HTML output only (previously minify also touched non-HTML output such as XML feeds).
  • Front matter must start on the first line of the file.
  • In .bxm files a leading comment that is not a YAML mapping is treated as an ordinary comment with a warning.
  • Two documents that resolve to the same output file, a missing passthru entry, invalid config, and front matter/pagination/render errors now fail the build with exit code 2 instead of being skipped silently.
  • Bootstrap JS, jQuery and Popper removed from the starter layout.
  • prc.inFile and prc.outFile are now paths relative to the site root and the output folder (they were absolute paths), and prc.date is always a date object.
  • A passthru entry that is empty, ., an absolute path or contains .. now fails the build; entries must be paths inside the site root.
  • serve uses a web server built into the module and no longer needs boxlang-miniserver. It listens on 127.0.0.1 only, so the site is reachable from your own machine alone, and it answers a missing page with the site's 404.html.

GitHub ↗ About boxlang-ssg