Skip to content

Releases: nliautaud/pico-pages-list

v0.4.1

10 May 08:25
ead799a
Compare
Choose a tag to compare
  • #19 Fixing Twig Filters being added too late on latest Pico

v0.4

04 Jul 10:43
a1f4c7e
Compare
Choose a tag to compare
  • Pico 2.0 support #10

For older versions of Pico, use the previous releases.

v0.3

24 Oct 12:59
3aa9d89
Compare
Choose a tag to compare

Switch to array filtering and rendering with twig filters, on pages or nested_pages (#5).

  • Adds twig global {{ nested_pages }} in addition to {{ pages }}
  • Render flat or nested HTML navigation tree with navigation twig filter
  • Filter pages and nested pages by paths with exclude() and only() twig filters

Examples :

    {{ pages | navigation }} // output a flat pages list
    {{ nested_pages | navigation }} // output a nested pages list
    {{ nested_pages | exclude('sub/page') | navigation }} // filtered nested pages list
    {% assign filtered = pages | only('sub/path/') %} // get filtered flat pages array

v0.2

18 Sep 18:44
Compare
Choose a tag to compare

0.2.0

  • support of Pico 1.x

0.2.1

  • default output with {{ PagesList.html }}
    • added output filtering trough twig instead of config with {{ PagesList.html(options) }}
    • added inclusive/exclusive filtering
    • added css utility classes
  • exposed the nested array trough {{ PagesList.items }}, added example of recursive twig macro
  • derived the page items from the Pico pages array, to give access to pages data in the nested array
  • refactoring