Releases: patrickarlt/acetate
Releases · patrickarlt/acetate
v2.1.0
createPage.fromTemplate
can now accept a function as its first parameter. This function gets allmetadata
and should return thesrc
.createPage.fromTemplate
will now also check for and load externalPAGENAME.metadata.json
orPAGENAME.metadata.yaml
as metadata. This metadata is treated as default metadata and inline metadata in the template file will override it.
v2.0.8
- Added a
--strict
flag for theacetate build
command. Builds with--strict
enabled will nowprocess.exit(1)
.
v2.0.7
acetate.symlink
now 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
,dest
andurl
are now respected when set in transforms.
v2.0.4
- Check the resolved version of the pathname inside the
{% link %}
helper to determine if theis-active
class 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' %}
theactiveClass
is properly applied. - Links like
{% link '/nested/page#team', 'Team' %}
now have a trailing slash applied to the path - Add a new
startPath
option to the CLI.
v2.0.2
- Transforming
dest
andurl
properties are now respected by the dev server - Deeply nested initial values for queries are now handled properly
v2.0.0
- Custom
dest
andurl
properties 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
src
and dymanically created pages that were createdcreatePage.fromTemplate()
will now be reloaded from disk every time they are requested in from the dev server.