Releases: nliautaud/pico-pages-list
Releases · nliautaud/pico-pages-list
v0.4.1
v0.4
v0.3
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()
andonly()
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
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
- added output filtering trough twig instead of config with
- 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