<commit_before>---
layout: default
title: Events
---

  {% comment %}Set variables for events system{% endcomment %}
  {% capture currentDate %}{{ site.time | date: '%F' }}{% endcapture %}
  {% assign sorted_events = (site.posts | sort: 'date') %}

  <h1>Upcoming Events</h1>
  <ul class="itemlist">
  {% for post in sorted_events %}
  {% capture date %}{{ post.eventdate | date: '%F' }}{% endcapture %}
  {% if post.categories contains 'event' %}
  {% if date > currentDate %}
	<div class="result">
	  <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
	  <span>{{ post.eventdate | date_to_string }}</span>
	  <div class="content">
		{% if post.summary == null %}
	    {{ post.content | strip_html | truncatewords: 200 }}
		{% else %}
		{{ post.summary }}
		{% endif %}
	  </div>
	</div>
	{% endif %}
	{% endif %}
  {% endfor %}
  </ul>
  <h1>Past Events</h1>
  <ul class="itemlist">
  {% for post in sorted_events %}
  {% capture date %}{{ post.eventdate | date: '%F' }}{% endcapture %}
 {% if post.categories contains 'event' %}
  {% if date < currentDate %}
	<div class="result">
	  <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
	  <span>{{ post.eventdate | date_to_string }}</span>
	  <div class="content">
		{% if post.summary == null %}
	    {{ post.content | strip_html | truncatewords: 200 }}
		{% else %}
		{{ post.summary }}
		{% endif %}
	  </div>
	</div>
	{% endif %}{% endif %}
  {% endfor %}</ul><commit_msg>Add pagination<commit_after>---
layout: default
title: Events
---

  {% comment %}Set variables for events system{% endcomment %}
  {% capture currentDate %}{{ site.time | date: '%F' }}{% endcapture %}
  {% assign sorted_events = (site.posts | sort: 'eventdate') %}

  <h1>Upcoming Events</h1>
  <ul class="itemlist">
  {% for post in sorted_events %}
  {% capture date %}{{ post.eventdate | date: '%F' }}{% endcapture %}
  {% if post.categories contains 'event' %}
  {% if date > currentDate %}
	<div class="result">
	  <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
	  <span>{{ post.eventdate | date_to_string }}</span>
	  <div class="content">
		{% if post.summary == null %}
	    {{ post.content | strip_html | truncatewords: 200 }}
		{% else %}
		{{ post.summary }}
		{% endif %}
	  </div>
	</div>
	{% endif %}
	{% endif %}
  {% endfor %}
  </ul>
  <h1>Past Events</h1>
  <ul class="itemlist">
  {% for post in sorted_events %}
  {% capture date %}{{ post.eventdate | date: '%F' }}{% endcapture %}
 {% if post.categories contains 'event' %}
  {% if date < currentDate %}
	<div class="result">
	  <h2><a href="{{ site.baseurl }}{{ post.url }}">{{ post.title }}</a></h2>
	  <span>{{ post.eventdate | date_to_string }}</span>
	  <div class="content">
		{% if post.summary == null %}
	    {{ post.content | strip_html | truncatewords: 200 }}
		{% else %}
		{{ post.summary }}
		{% endif %}
	  </div>
	</div>
	{% endif %}{% endif %}
  {% endfor %}</ul>
{'fraction_non_alphanumeric': 0.22576271186440677, 'fraction_numerical': 0.009491525423728813, 'mean_word_length': 3.378338278931751, 'pattern_counts': {'":': 0, '<': 61, '<?xml version=': 0, '>': 61, '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': '6565991', 'n_tokens_mistral': 1181, 'n_tokens_neox': 1020, 'n_words': 250}