Sha256: d2cd1e1ba01e697e178e0a140c636a45240191ee5cbe94d32d59460e6694ca40

Contents?: true

Size: 1.99 KB

Versions: 23

Compression:

Stored size: 1.99 KB

Contents

<div class="events {{include.event_type}}s">
  {%- if include.title == true%}
  <h2>{{include.event_type | replace: "_", " " | capitalize}}s</h2>
  {%- endif %}
  {%- assign events = site.data.events %}
  {%- assign count = 0 %}
  <ul class="list-unstyled mt-3">
    {%- for event in events %}
    <li class='{{include.event_type}}' data-start='{{ event.startDate}}'>
      <span class="title mb-1">{{ event.name | escape }}</span>
      <p class="text-muted mb-0"><i class="far fa-calendar me-2"></i><time datetime="{{ event.startDate | date: '%e %B, %Y %H:%M' }}">{{ event.startDate | date_to_long_string }} {{event.startTime}}</time>
        {% if event.endDate or event.endTime %} - <time datetime="{{ event.endDate | date: '%e %B, %Y %H:%M %Z' }}">{{ event.endDate | date_to_long_string }} {{event.endTime}}</time>{% endif %}</p>
      {%- if event.location %}
      <i class="fa-solid fa-map-marker-alt me-2 text-muted"></i>
      <div class="d-inline-block text-muted">{{ event.location | markdownify }}</div>
      {%- endif %}
      {%- if event.description %}
      {%- assign word_count = event.description | split: " " | size %}
      {%- if include.truncate == true and word_count > 40 %}
      <p class="mb-0"><a data-bs-toggle="collapse" href="#collapse-{{count}}" role="button" aria-expanded="false" aria-controls="collapse-{{count}}">
        View description
      </a>
      </p>
      <div class="full-description collapse" id="collapse-{{count}}">
        {{ event.description | markdownify }}
      </div>
      {%- else %}
      {{ event.description | markdownify }}
      {%- endif %}
      {%- endif %}
    </li>
    {%- assign count = count | plus: 1 %}
    {%- endfor %}
  </ul>
  {%- if include.caption == true%}
  {%- assign caption_url = include.caption_url | default: "/events" %}
  <small>An overview of all our events can be fount on the <a href="{{ caption_url | relative_url}}">events page</a>.</small>
  {%- endif %}
</div>
<script>
  $(function () {
    show_{{ include.event_type }}s();
  });
</script>

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
elixir-toolkit-theme-3.2.0 _includes/events.html
elixir-toolkit-theme-3.1.1 _includes/events.html
elixir-toolkit-theme-3.1.0 _includes/events.html
elixir-toolkit-theme-3.0.1 _includes/events.html
elixir-toolkit-theme-3.0.0 _includes/events.html
elixir-toolkit-theme-2.5.0 _includes/events.html
elixir-toolkit-theme-2.4.0 _includes/events.html
elixir-toolkit-theme-2.3.0 _includes/events.html
elixir-toolkit-theme-2.2.2 _includes/events.html
elixir-toolkit-theme-2.2.1 _includes/events.html
elixir-toolkit-theme-2.2.0 _includes/events.html
elixir-toolkit-theme-2.1.0 _includes/events.html
elixir-toolkit-theme-2.0.0 _includes/events.html
elixir-toolkit-theme-1.26.0 _includes/events.html
elixir-toolkit-theme-1.25.0 _includes/events.html
elixir-toolkit-theme-1.24.0 _includes/events.html
elixir-toolkit-theme-1.23.0 _includes/events.html
elixir-toolkit-theme-1.22.0 _includes/events.html
elixir-toolkit-theme-1.21.0 _includes/events.html
elixir-toolkit-theme-1.20.2 _includes/events.html