Cecil logo
May 22, 2023

Cecil 7.37.0 released

Features

The paginator variable page.paginator.links.path returns the Page ID without position index.

Example:

{% if page.paginator %}
<div>
  {% for paginator_index in 1..page.paginator.count %}
    {# not the current page: URL #}
    {% if paginator_index != page.paginator.current %}
      {# the first page #}
      {% if paginator_index == 1 %}
  <a href="{{ url(page.paginator.links.first) }}">{{ paginator_index }}</a>
      {% else %}
  <a href="{{ url(page.paginator.links.path ~ '/' ~ paginator_index) }}">{{ paginator_index }}</a>
      {% endif %}
    {# the current page: not URL #}
    {% else %}
  {{ paginator_index }}
    {% endif %}
  {% endfor %}
</div>
{% endif %}

Documentation →

Fix

  • Fix metatags favicon asset
  • Fix clear-cache command option
  • Fix console debug mode
  • Fix logo in JSON-LD template
  • Fix JSON templates
  • <script> tag added to live reload script (by @ahnlak)

Miscs

  • Dependencies updated
  • Use Composer dump-autoloaderdirective for better performance
  • Step logged messages enhanced
Release notes on GitHub