Spress 2.1.3 released

Hello community. A new maintenance release of Spress has been released. The highlights this time have been a fix related with the content of title_path attribute in case of filenames with dots before extension (previously, the value of this attribute appears truncated). Additionally, the value of title_path will no longer be altered by FilesystemDataSource class, only rawurlencode function is applied. If you have a file called 02-02-spress-2.1.1-released.md then the value of title_path will be spress-2.1.1-released instead of spress-2-1-1-released.

Another improvement has been the option for avoid scanning certains directories such as tests when the plugin manager is loading classes in order to detect which of those are plugins.

The complete changelog:

  • New Class FileInfo has been added to the support classes set of the core.
  • New New configuration value aimed to plugin manager builder for excluding directories in the disconvering class phase. Useful to avoid scaning test classes.
  • Fixed Fixed the truncated title_path attribute when the filename contains dots before the extension. More details in bug #88.
  • Fixed The value of title_path is not altered when it is parsed by FilesystemDataSource class. More details in bug #88.
  • Fixed If you set preserve_path_title attribute to true you will get the title parsed from the filename as-is (without the date part). Only rawurlencode function is applied. See PR #90.
Read more

Spress 2.1.2 released

Hello. A new maintenance release of Spress has been released with some bug fixes.

The complete changelog:

  • New Two new methods have been added to StringWrapper class: lower and upper for cingonvert a given string to lower-case and upper-case respectively using UTF-8 as encoding.
  • Fixed Bug #80 has been fixed: "Composer install fails if no namespace is specified in new plugin". See PR #81.
  • Fixed Bug #82 has been fixed: "Substr --- in yaml string cause builder crash".
  • Fixed Bug #83 has been fixed: "Same tags on different languages cause builder crash".
Read more

Spress 2.1.1 released

Hi Spress folks! The first maintenance release of Spress 2.1 has been released with two bug fixes.

The complete changelog:

  • Fixed Bug #78 has been fixed: "/:basename permalink variable contains .html when using *.html.twig". Related with feature #73.
  • Fixed Bug #79 has been fixed: "Error loading plugin's dependencies with -s option at site:build command".
  • Improved Clarified the message when site:build command is invoked against a non Spress site folder.
Read more

Spress 2.1.0 released

Hi community. To make your weekend all the better, we have just released Spress 2.1.0 with many features and improvements.

Key features

  • New Sorted items in collections. Feature thanks to jjk-jacky.
  • New Attributes referring to the previous and next items in a sorted collection. Feature thanks to jjk-jacky.
  • New Calling an existing command in command plugins.
  • New Support for extending Spress with Twig tags. Contributed by jjk-jacky in #65.
  • New Support .twig extention. This feature lets you work more appropriately with pages using IDEs such as PHPStorm. Feature thanks to peterfox.
  • Improved Improved permalinks customizations. Contributed by jjk-jacky in #65.
  • Fixed Fixed the path available at page.path variable. Prior to this version, this variable contains the relative path to src/content/ but with the filename extension changed by the Converter. Now, the original filename extension isn't altered.
Read more

A site variable with items matching a criteria

There are certain situations in which it is necessary to have available a site variable (those that are accessible using site.xxx) with the items that matching certain criteria. In this post, I will explain how to expose a new site variable with items that contains an categories attribute.

Read more