Skip to content

Commit

Permalink
Now back to original
Browse files Browse the repository at this point in the history
  • Loading branch information
bmann committed Aug 3, 2018
1 parent efd52f8 commit a6a910d
Showing 1 changed file with 4 additions and 20 deletions.
24 changes: 4 additions & 20 deletions events/_layouts/home.html
Original file line number Diff line number Diff line change
@@ -1,27 +1,11 @@
---
layout: archive
---
{{ content }}

<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].recent_posts | default: "Recent Posts" }}</h3>

<h3 class="archive__subtitle">Updated Event</h3>

{% assign sorted = site.events | sort: 'modified' | reverse %}
{% for post in sorted limit:1 %}
{% include event-single.html %}
{% endfor %}

<h3 class="archive__subtitle">{{ site.data.ui-text[site.locale].upcoming_events | default: "Upcoming Events" }}</h3>

{% assign builddate = now | date: '%s' %}
{% for post in site.events %}
<!-- TODO: only show upcoming dates -->
{% if post.event[start_date] < builddate %}
{% include event-single.html %}
{% endif %}
{% for post in paginator.posts %}
{% include archive-single.html %}
{% endfor %}

<!-- TODO: paginator with collections-->
<!--
{% include paginator.html %}
-->
{% include paginator.html %}

0 comments on commit a6a910d

Please sign in to comment.