-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 %} |