Skip to content

Latest commit

 

History

History
101 lines (96 loc) · 2.73 KB

events.md

File metadata and controls

101 lines (96 loc) · 2.73 KB
layout title
default
Events

{% assign date_format = site.minima.date_format | default: "%b %-d, %Y" %} {% assign events = site.events | sort:"starts" | reverse %}

Gallantries Events

{% for event in events %} {% unless event.old %} {% endunless %} {% endfor %}
Topic/Event Starts Ends Location
{{ event.excerpt }}
{{ event.starts | date: date_format }} {{ event.ends | date: date_format }} {% assign sep = '' %} {% for loc in event.locations %} {{ sep }}{{ loc.city }} {% assign sep = ' - ' %} {% endfor %}



<h2>Old Events</h2>
<p>
These events were part of our initial Mozilla funded Gallantries Pilot Project.
</p>
<table class="table table-striped">
  <thead>
    <tr>
      <th>Topic/Event</th>
      <th class="is-hidden-mobile">Starts</th>
      <th class="is-hidden-mobile">Ends</th>
      <th class="is-hidden-mobile">Location</th>
    </tr>
  </thead>
  <tbody>
    {% for event in events %}
	{% if event.old %}
    <tr>
      <td>
        <h4><a href="{{ event.url | absolute_url }}">{{ event.title | escape }}</a></h4>
        <div>{{ event.excerpt }}</div>
      </td>
      <td class="is-hidden-mobile">
        <span class="text-nowrap"
          >{{ event.starts | date: date_format }}</span
        >
      </td>
      <td class="is-hidden-mobile">
        <span class="text-nowrap"
          >{{ event.ends | date: date_format }}</span
        >
      </td>
      <td class="is-hidden-mobile">
        {% assign sep = '' %}
        {% for loc in event.locations %}
          {{ sep }}{{ loc.city }}
          {% assign sep = ' - ' %}
        {% endfor %}
      </td>
    </tr>
	{% endif %}
    {% endfor %}
  </tbody>
</table>