Assign different classes to alternating blog posts?

@MrCapp I think you could further use the ‘cycle’ tag in this case as it’s not limited only up to two values. In fact, we could add multiple. For example:

{% for content in contents %}
 <div class="post-item {% cycle 'width-one-third','width-two-thirds', 'width-two-thirds','width-one-third' %}">

Which would generate an HTML like this:

<! -- start of cycle -->
<div class="post-item width-one-third">
<div class="post-item width-two-thirds">
<div class="post-item width-two-thirds">
<div class="post-item width-one-third">
<! -- cycle will repeat again -->
<div class="post-item width-one-third">
<div class="post-item width-two-thirds">
<div class="post-item width-two-thirds">
<div class="post-item width-one-third">

So on and so forth.

L