I'm trying to output all the siblings of the current entry in a multi level structure like this:
{% for sibling in entry.siblings() %}
<li>{{ sibling.link }}</li>
{% endfor %}
This works well, but how can I make this output all the siblings and the current entry?
I know I could add:
<li>{{ entry.link }}</li>
before or after the sibling.link, but that would mess up the sort order.
If this can't be done this way, maybe I could somehow output the current branch/depth using a different approach? Any suggestions?