Cecil logo
June 4, 2023

Cecil 7.40.0 released

Features

i18n for taxonomy

Adds i18n support to the taxonomy feature: you can use localized vocabularies and terms in your pages.

Configuration
taxonomies:
  categories: categorie
languages:
  - code: en
    name: English
    locale: en
  - code: fr
    name: Français
    locale: fr_FR
    config:
      taxonomies:
        catégories: catégorie
Page

example.fr.md:

---
catégories: [Catégorie 1, Catégorie 2]
---
Template

vocabulary.html.twig:

<ul>
{% for term in page.terms %}
  <li>
-    <h2><a href="{{ url(page.path ~ '/' ~ term.id) }}">{{ term.name }}</a> ({{ term|length }})</h2>
+    <h2><a href="{{ url(term.id, {language: site.language}) }}">{{ term.name }}</a> ({{ term|length }})</h2>
  </li>
{% endfor %}
</ul>

Documentation →

Fix

  • Do not remove the sectionvariable of excluded pages
  • Fix live reload script injection
  • Fix show:content command

Miscs

  • Dependencies updated
  • show:config command enhanced
Release notes on GitHub