When we have blog posts across multiple years, then, for the first year if we have more than one blog posts, there is rogue </div> tag which does not get rendered properly.
Reason: For the last loop iteration, the code never goes back to the
{% unless forloop.first %}</ul>{% endunless %}
which is responsible for closing the ul tag. As a reason, the generator is not able to render the close div tag properly.
When we have blog posts across multiple years, then, for the first year if we have more than one blog posts, there is rogue
</div>
tag which does not get rendered properly.Reason: For the last loop iteration, the code never goes back to the
which is responsible for closing the
ul
tag. As a reason, the generator is not able to render the close div tag properly.Screenshot from live blog -
Before fix
After fix