<div id="post-container">
    {% for post in paginator.posts %}
        <article class="post">
            <header class="post-header wrapper">
                <div class="post-title">
                    <h2 class="post-title">
                        {% if post.external-url %}
                            <a href="{{post.external-url}}">{{post.title}}</a>
                        {% else %}
                            <a href="{{post.url}}" rel="bookmark">{{post.title}}</a>
                        {% endif %}
                    </h2>
                    <p class="public-date">vom <time class="post-date" datetime="{{post.date | date: "%Y-%m-%d"}}">
                            {% assign m = post.date | date: "%-m" %}
                            {{ post.date | date: "%d" }}
                            {% case m %}
                                {% when '1' %}Januar
                                {% when '2' %}Februar
                                {% when '3' %}M&auml;rz
                                {% when '4' %}April
                                {% when '5' %}Mai
                                {% when '6' %}Juni
                                {% when '7' %}Juli
                                {% when '8' %}August
                                {% when '9' %}September
                                {% when '10' %}Oktober
                                {% when '11' %}November
                                {% when '12' %}Dezember
                            {% endcase %}
                            {{ post.date | date: "%Y" }}</time>
                        {% if post.external-url %}
                            &nbsp;|&nbsp;<a href="{{post.url}}">Post Link</a>
                        {% endif %}
                    </p>
                </div>
            </header>
            <div class="post-content wrapper">
                {{post.content}}
            </div>
            {% if post.layout == 'review' %}
                <div class="reviewRating wrapper">
                    {% for counter in (1..5) %} 
                        {% if counter <= post.rating %}
                            <span class="ratingSet">&#9733;</span>
                        {% else %}
                            <span class="ratingUnset">&#9733;</span>
                        {% endif %}
                    {% endfor %}
                </div>
            {% endif %}
        </article>
    {% endfor %}
</div>
{% include pagination.html %}