> My question: can I limit the number of posts to list, in the YAML
> config or in templates?
Hyde enables jinja2 loop controls (http://jinja.pocoo.org/docs/extensions/#loopcontrols-extension).
So you can break out of the loop when index is 4.
{% if loop.index > 3 %} {% break %} {% endif %}
=====================================================================================
OT:
Not sure if you have already found it - but with sorters (also with groupers and taggers) you have:
prev_by_time, next_by_time (sorter)
prev_in_group, next_in_group (grouper)
prev_with_tag, next_with_tag (tagger)
=====================================================================================
Thanks
Lakshmi.
> --
> You received this message because you are subscribed to the Google Groups "Hyde" group.
> To post to this group, send email to hyde...@googlegroups.com.
> To unsubscribe from this group, send email to hyde-dev+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/hyde-dev?hl=en.
>
I have added two filters: top and islice doing some of these list manipulations.
See examples here:
https://github.com/hyde/hyde/blob/master/hyde/tests/test_jinja2template.py#L571-578
Thanks
Lakshmi