<commit_before>{% capture the_collection %}{{page.collection}}{% endcapture %}
{% assign nexturl = page.previous.url %}
{% assign prevurl = page.next.url %}
{% if page.collection %}
  {% assign  document = site[the_collection] | sort: "order" %}
{% endif %}

<div class="section-heading">
  {% if page.sidebar_heading %}
    <h4>{{page.sidebar_heading | markdownify | remove: '<p>' | remove: '</p>'  }}</h4>
  {% endif %}
</div>
<nav class="card-menu columns-small">
  <ul class="nav-sidebar">
    {% capture entries_limit %}{{include:limit}}{% endcapture %}
    {% for links in document limit:{{entries_limit}} %}
      {% unless links.dont-show-in-menu %}
      <li class="nav-sidebar-item {{ links.category }}">
      {% capture title %}{{ links.title }}{% endcapture %}
        <a href="{{ links.url }}" class="arrow {% unless page.section == 'home' %}{% if links.url contains page.url %} arrow-left{% endif %}{% endunless %}">{{ title | truncate:45 }}</a>
      </li>
        {% comment %}the first if statement looks through and creates prev/next links, the index statement below it creates a next url for the index page outside of this loop
          TODO: Make first loop back to index
        {% endcomment %}
      {% if links.title == page.title %}
        {% unless forloop.first %}
          {% assign prevurl = prev.url %}
        {% endunless %}
        {% unless forloop.last %}
          {% assign next = document[forloop.index] %}
          {% assign nexturl = next.url %}
        {% endunless %}
      {% endif %}
      {% if page.url contains '/index.html' %}{% comment %}TODO: THIS MAY CHANGE to '' IF MOVE TO NON HTML FILE ENDING{% endcomment %}
        {% if forloop.first %}
          {% assign next = document[forloop.index] %}<commit_msg>Update prev-next-links.html<commit_after>{% capture the_collection %}{{page.collection}}{% endcapture %}
{% assign nexturl = page.previous.url %}
{% assign prevurl = page.next.url %}
{% if page.collection %}
  {% assign  document = site[the_collection]  %}
{% endif %}

<div class="section-heading">
  {% if page.sidebar_heading %}
    <h4>{{page.sidebar_heading | markdownify | remove: '<p>' | remove: '</p>'  }}</h4>
  {% endif %}
</div>
<nav class="card-menu columns-small">
  <ul class="nav-sidebar">
    {% capture entries_limit %}{{include:limit}}{% endcapture %}
    {% for links in document limit:{{entries_limit}} %}
      {% unless links.dont-show-in-menu %}
      <li class="nav-sidebar-item {{ links.category }}">
      {% capture title %}{{ links.title }}{% endcapture %}
        <a href="{{ links.url }}" class="arrow {% unless page.section == 'home' %}{% if links.url contains page.url %} arrow-left{% endif %}{% endunless %}">{{ title | truncate:45 }}</a>
      </li>
        {% comment %}the first if statement looks through and creates prev/next links, the index statement below it creates a next url for the index page outside of this loop
          TODO: Make first loop back to index
        {% endcomment %}
      {% if links.title == page.title %}
        {% unless forloop.first %}
          {% assign prevurl = prev.url %}
        {% endunless %}
        {% unless forloop.last %}
          {% assign next = document[forloop.index] %}
          {% assign nexturl = next.url %}
        {% endunless %}
      {% endif %}
      {% if page.url contains '/index.html' %}{% comment %}TODO: THIS MAY CHANGE to '' IF MOVE TO NON HTML FILE ENDING{% endcomment %}
        {% if forloop.first %}
          {% assign next = document[forloop.index] %}
{'fraction_non_alphanumeric': 0.17153388148568188, 'fraction_numerical': 0.0022682166146867026, 'mean_word_length': 2.9243604004449386, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, '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': '2250412', 'n_tokens_mistral': 1151, 'n_tokens_neox': 1013, 'n_words': 301}