boxlang-ssg 1.2.0
Released .
Redirect pages, a table of contents for Markdown, dates from git, a check command for broken internal links, an assetUrl() helper with a content hash, llms.txt and robots.txt in the starter, and an ssg command created by the installer. Sites in git may see different lastModified values; see Changed.
install-bx-module boxlang-ssg bx-yaml bx-markdown bx-jsoup
Added
redirectFromfront matter: a URL or list of URLs that get a redirect page pointing at the document. A redirect that collides with a document or another redirect fails the build.prc.toc: the headings of a.mddocument as a list of{ level, id, text }.checkcommand: builds, then reports internalhrefandsrcvalues that point at no written file, and exits 2 if there are any.assetUrl( path )template helper:relUrl( path )plus?v=and a content hash of the file. The starter layout uses it for its stylesheet.llms.bxmandrobots.bxmin the starter, writing/llms.txtand/robots.txt.gitDatesconfig key,trueby default (see Changed).box.jsondeclaresboxlang.executable, soinstall-bx-modulecreates anssgscript in~/.boxlang/bin/(or./boxlang_modules/.bin/with--local). With it on yourPATH,ssg <command>runsboxlang module:ssg <command>.
Changed
- When the site root is inside a git repository,
prc.lastModifiedand the last fallback for a document's date now come from the file's last commit instead of its modified time. Files that are untracked or have uncommitted changes keep their modified time. A shallow clone prints a warning and keeps modified times. Set"gitDates": falsefor the 1.1 behaviour. serveandbuild --watchconvert a.mdfile again only when its modified time changes.
A site in git may see different lastModified values, and different dates on documents that set no date and have none in their file name. Sites that sort or build URLs from such dates should set date in the front matter.