Releases: patrickarlt/acetate
Releases · patrickarlt/acetate
v2.1.0
createPage.fromTemplatecan now accept a function as its first parameter. This function gets allmetadataand should return thesrc.createPage.fromTemplatewill now also check for and load externalPAGENAME.metadata.jsonorPAGENAME.metadata.yamlas metadata. This metadata is treated as default metadata and inline metadata in the template file will override it.
v2.0.8
- Added a
--strictflag for theacetate buildcommand. Builds with--strictenabled will nowprocess.exit(1).
v2.0.7
acetate.symlinknow works properly against deeply nested directories.
v2.0.6
- Acetate now performs variable replacement in Markdown files with Nunjucks BEFORE rendering the markdown. This allows things like
[Link]({{relativePath}}/link/to/page/)to be output properly.
v2.0.5
- Changes to
ignore,destandurlare now respected when set in transforms.
v2.0.4
- Check the resolved version of the pathname inside the
{% link %}helper to determine if theis-activeclass should be applied.
v2.0.3
- The
{$% link %}helper no longer internal resolves pages. - When linking page like
{% link relativePath + '/nested/page/', 'Link With relativePath' %}theactiveClassis properly applied. - Links like
{% link '/nested/page#team', 'Team' %}now have a trailing slash applied to the path - Add a new
startPathoption to the CLI.
v2.0.2
- Transforming
destandurlproperties are now respected by the dev server - Deeply nested initial values for queries are now handled properly
v2.0.0
- Custom
destandurlproperties are now respected by builds. - Headers on 404 page are now fixed
- Default highlight.js instance is now exposed and can now be overwritten at
acetate.highlight.
v2.0.0-rc.4
Changed
- Templates for pages in
srcand dymanically created pages that were createdcreatePage.fromTemplate()will now be reloaded from disk every time they are requested in from the dev server.