liara serveto change the listen port.
ignore_filesoption to ignore certain file patterns. This is particularly useful if an editor creates lock or backup files that should be ignored. See Configuration for more details.
The file discovery process will ignore invalid index and resource files instead of failing with an exception. An error will be logged to help find the problematic files.
liara list-contentnot showing the node type on
Handling of metadata has changed:
Document metadata can be placed in a separate
.metafile instead of being part of the document itself. See Content for more details.
.metafiles for metadata are no longer supported in the static and resource directory. This previously didn’t work as expected – resource files with
.metafiles associated had the
.metafile processed (which would cause a failure), and static files had the
.metafile added as a separate static file. From this release on,
.metafiles don’t get any special treatment when placed in the static or resource directory trees. Static files inside the content directory continue to support metadata files. See Content for more details.
Mako is now installed by default, and the
makoextra is gone. If you installed Liara using
liara[mako], please switch to
liara quickstartgained a new option,
--template-backend, which allows selecting between
The collection sort order can be reversed now. See Collections for more details.
Bump minimal required Python version to 3.8.
liara servenow uses the cache configuration specified by the user instead of always using a filesystem cache with fixed paths.
RedisCache, which uses Redis as the storage backend. Using Redis in a shared environment allows multiple clients to benefit from the cache. Additionally, the Redis cache allows for cache entries to expire, so it won’t accumulate garbage over time (i.e. draft posts which never get published, etc.) See Configuration for more details on how to enable Redis. Redis also requires Liara to be installed with the
liara quickstartnot working.
Fix a bug when fixing up timezones while using the
zoneinfopackage for timezone data.
Use the logger in
liara serveinstead of printing directly to the console for log messages. The default listen URL will be still printed if showing the browser is disabled.
liara serve. This fixes an issue with Chrome/Edge where SVG images would not work as they were served without a content type.
jinja2dependency to 3.0. This provides access to new Jinja2 features like required blocks.
clickdependency to 8.0.
Fix plugins not being packaged.
Introduce a new plugin system. This moves the
has-pending-documentcommand into a new plugin and adds signals to interact with Liara’s processing. See Plugins for details.
liara.version.version. Use the standard
liara.__version__variable instead, which was already present in earlier versions.
server_rule_onlyoption to prevent the creation of redirection nodes and use the redirection paths verbatim.
has-pending-documentto the command line. This will check if there is any content which is filtered by the
DateFilter. This is useful for cron-based deploys which try to not rebuild if there are no content changes, as there is no other way to find out if all content in a given revision has been published.
liara create-confignot working.
Fix a packaging issue.
Improve document handling: Documents without a trailing newline are now supported, previously they would cause an error.
Improve configuration: Empty configuration files are now supported.
list-filesrequiring a type to be specified.
base_urlwhen serving locally. This was previously documented to work, but not implemented. As part of this change,
liara 2.0 is a complete rewrite of liara, with no shared code with the 1.x series. liara 2 is now template & content driven, and no longer just a library which simplifies static page generation. Unlike the 1.x series, it is possible to use liara 2 without writing any Python code.