-
Notifications
You must be signed in to change notification settings - Fork 3
/
events.html
55 lines (48 loc) · 1.48 KB
/
events.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
layout: default
---
<div class="row-fluid">
<div class="span3">
<h4> Upcoming </h4>
<ul>
{% assign i = 0 %}
{% assign num_to_show = 2 %}
{% for post in site.posts reversed %}
{% if i < num_to_show %}
{% if post.date >= site.time and post.category == 'events' %}
<li>
<a href="{{ post.url }}"> {{post.date | date:"%B %d, %Y" }}: {{ post.title}} </a>
</li>
{% assign i = i | plus: 1 %}
{% endif %}
{% endif %}
{% endfor %}
</ul>
{% comment %}At most 100 events before right now. {% endcomment %}
<h4>Past Events</h4>
<ul>
{% for post in site.posts %}
{% if post.date < site.time and post.category == 'events' %}
<li><a href="{{ post.url }}">{{post.date | date:"%B %d, %Y" }}: {{ post.title}}</a> </li>
{% endif %}
{% endfor %}
</ul>
</div>
<div class="span8">
{% comment %}
{% assign i = 0 %}
{% assign num_to_show = 4 %}
{% endcomment %}
{% for post in site.posts reversed limit:10 %}
{% comment %} if i < num_to_show {% endcomment %}
{% if post.date >= site.time and post.category == 'events' %}
<h1 class="shead">{{post.title}}</h1>
<p>{{ post.date | date:"%B %d, %Y" }}</p>
<p> {{ post.content }}</p>
<hr>
{% comment %}{% assign i = i | plus: 1 %}{% endcomment %}
{% endif %}
{% comment %} endif {% endcomment %}
{% endfor %}
</div>
</div>