We are the technical team building OpenICE. Occassionally we do or find interesting things we want to share. These are our ramblings.
{% for post in paginator.posts %}
{{ post.title }}
{% assign authorCount = post.author | size %}
{% if authorCount == 0 %}
No author
{% elsif authorCount == 1 %}
{{ post.author | first }}
{% elsif authorCount == 2 %}
{% for author in post.author %}{% if forloop.first %}{{ author }}{% else %} and {{ author }}{% endif %}{% endfor %}
{% else %}
{% for author in post.author %}{% if forloop.last %} and {{ author }}{% else %}{{ author }}, {% endif %}{% endfor %}
{% endif %}
{{ post.date | date_to_long_string }}
{{ post.excerpt }}
Continue reading...
{% endfor %}
Page {{ paginator.page }} of {{ paginator.total_pages }}