---
license: MIT
---
<!DOCTYPE html>
<html>
    <head>
        <title>{{ page.title }}</title>
    </head>
    <body>
        {% for post in page.archive.posts reversed %}
        <article>
            <h2><a href="{{post.url}}">{{ post.title }}</a></h2>
        </article>
        {% endfor %}
    </body>
</html>

---
license: MIT
---
<!DOCTYPE html>
<html>
    <head>
        <title>{{ page.title }}</title>
    </head>
    <body>
        {% for post in page.archive.posts reversed %}
        <article>
            <h2><a href="{{post.url}}">{{ post.title }}</a></h2>
        </article>
        {% endfor %}

        <!-- Pagination links -->
        <nav class="pagination">
            {% if paginator.previous_page %}
            <a href="/page{{ paginator.previous_page }}" class="previous">Previous</a>
            {% else %}
            <span class="previous">Previous</span>
            {% endif %}
            <span class="page_number ">Page: {{ paginator.page }} of {{ paginator.total_pages }}</span>
            {% if paginator.next_page %}
            <a href="/page{{ paginator.next_page }}" class="next">Next</a>
            {% else %}
            <span class="next ">Next</span>
            {% endif %}
        </nav>
    </body>
</html>

Add pagination to example layout.
Add pagination to example layout.
