<commit_before>---
layout: default
---

<section class="main-content">

    {% for post in paginator.posts %}
        <article class="module color-3">
                <h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
                <span class="category">{{ post.categories }}</span>
                <p>{{ post.excerpt | strip_html | truncate: 250 }}</p>
        </article>
    {% endfor %}

    <div class="module pagination color-3">
        {% if paginator.previous_page %}
            <a href="{{ site.url }}{{ paginator.previous_page_path }}" class="previous">Previous</a>
        {% endif %}

        <span class="page_number">&mdash; {{ paginator.page }} of {{ paginator.total_pages }} &mdash;</span>

        {% if paginator.next_page %}
            <a href="{{ site.url }}{{ paginator.next_page_path }}" class="next">Next</a>
        {% endif %}
    </div>

</section>

<commit_msg>Changes to index to allow for single post homepage<commit_after>---
layout: default
---
<section class="main-content">
{% if site.singlepage %}

    {% assign post = site.posts.first %}
    {% assign content = post.content %}
    <article class="module color-3">
        <!--h1>{{ post.title }}{{ .shortUrl }}</h1>
        <hr-->
        {{ content }}
        <!--p class="top"><small><a href="#top">[top]</a></small></p-->
    </article>

{% else %}

    {% for post in paginator.posts %}
        <article class="module color-3">
                <h2><a href="{{ site.url }}{{ post.url }}" title="{{ post.title }}">{{ post.title }}</a></h2>
                <span class="category">{{ post.categories }}</span>
                <p>{{ post.excerpt | strip_html | truncate: 250 }}</p>
        </article>
    {% endfor %}

    <div class="module pagination color-3">
        {% if paginator.previous_page %}
            <a href="{{ site.url }}{{ paginator.previous_page_path }}" class="previous">Previous</a>
        {% endif %}

        <span class="page_number">&mdash; {{ paginator.page }} of {{ paginator.total_pages }} &mdash;</span>

        {% if paginator.next_page %}
            <a href="{{ site.url }}{{ paginator.next_page_path }}" class="next">Next</a>
        {% endif %}
    </div>
    
{% endif %}

</section>
{'fraction_non_alphanumeric': 0.20842572062084258, 'fraction_numerical': 0.00753880266075388, 'mean_word_length': 2.4130105900151286, 'pattern_counts': {'":': 0, '<': 54, '<?xml version=': 0, '>': 54, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4059685', 'n_tokens_mistral': 754, 'n_tokens_neox': 687, 'n_words': 151}