-
Notifications
You must be signed in to change notification settings - Fork 16
/
index.html
35 lines (33 loc) · 1.12 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
layout: home
title: Home
---
<ul class="no-bullet post-list">
{% for post in site.posts reversed limit:5 %}
{% capture nowunix %}{{'now' | date: '%s'}}{% endcapture %}
{% capture eventtime %}{{post.event_date | date: '%s'}}{% endcapture %}
{% if eventtime > nowunix %}
<li>
<h2 class="post-title">
<a href="{{ post.url }}">{{ post.title }}</a>
</h2>
{% if post.categories contains 'events' %}
{% include set_event_date event=post %}
<p hidden>{{eventtime}}:{{nowunix}}</p>
<p class="post-byline">
<b>Event Date and Time</b>: {{ event_date | date: "%A, %B %d - %-I:%M %p" }}
</p>
{% endif %}
<p class="post-excerpt">
{{ post.excerpt }}
{% if post.social_image %}
<div>
<img src="{{post.social_image}}"/>
</div>
{% endif %}
</p>
</li>
{% endif %}
{% endfor %}
</ul>
<hr/>