<commit_before>---
layout: default
---
{% assign posts_count = paginator.posts | size %}

<div class="home">
  {% if posts_count > 0 %}
  <div class="posts" id="search-container">

    {% for post in paginator.posts %}
    <div class="post py3">
      <p class="post-meta">{{ post.date | date: site.date_format }}</p>
      <a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
        <h3 class="h1 post-title">{{ post.title }}</h3>
      </a>
      <span class="post-summary">
        {% if post.cover %}
        <a href="{{ post.url | prepend: site.baseurl }}">
          <img src="{{ post.cover }}" />
        </a>
        {% endif %}

        {% if post.summary %}
        {{ post.summary }}
        {% else %}
        {{ post.excerpt }}
        {% endif %}
      </span>
    </div>
    {% endfor %}<commit_msg>Add categories for posts on homepage<commit_after>---
layout: default
---
{% assign posts_count = paginator.posts | size %}

<div class="home">
  {% if posts_count > 0 %}
  <div class="posts" id="search-container">

    {% for post in paginator.posts %}
    <div class="post py3">
      <p class="post-meta">{{ post.date | date: site.date_format }}</p>
      <a href="{{ post.url | prepend: site.baseurl }}" class="post-link">
        <h3 class="h1 post-title">{{ post.title }}</h3>
      </a>
      <span class="post-meta small">
        {% for category in post.categories %}
          <a href="{{ site.url }}/{{ category }}" class="post-link">#{{ category }}</a> 
        {% endfor %}
      </span>
      <span class="post-summary">
        {% if post.cover %}
        <a href="{{ post.url | prepend: site.baseurl }}">
          <img src="{{ post.cover }}" />
        </a>
        {% endif %}

        {% if post.summary %}
        {{ post.summary }}
        {% else %}
        {{ post.excerpt }}
        {% endif %}
      </span>
    </div>
    {% endfor %}
{'fraction_non_alphanumeric': 0.20582010582010582, 'fraction_numerical': 0.005291005291005291, 'mean_word_length': 2.079804560260586, 'pattern_counts': {'":': 0, '<': 37, '<?xml version=': 0, '>': 39, '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': '2514791', 'n_tokens_mistral': 656, 'n_tokens_neox': 601, 'n_words': 147}