-
Notifications
You must be signed in to change notification settings - Fork 90
/
index.html
50 lines (47 loc) · 1.84 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
---
layout: default
description: "Our mission is to open the doors of cartographic possibility to anyone interested by creating a time and space for collaborative learning, exploration, and map creation using mapping tools and technologies."
---
<!-- This loops through the paginated posts and events -->
{% for item in paginator.posts %}
<h2><a href='{{site.baseurl}}{{item.url}}'>{{item.title}}</a></h2>
{{ item.excerpt }}
{% capture content_words %}
{{ item.content | number_of_words }}
{% endcapture %}
{% capture excerpt_words %}
{{ item.excerpt | number_of_words }}
{% endcapture %}
{% if excerpt_words != content_words %}
{% include post-excerpt.html %}
{% endif %}
{% if item.category == 'event' %}
{% if item.rsvp %}
<div class='keyline-all round pad2 col12 clearfix'>
<div class='col8 pad0y'>
Join us: <span class='quiet'>{{item.date | date:"%A, %b %d %Y"}}</span>
</div>
<div class='col4'>
<a class='button fill-orange block' href='{{item.rsvp}}'>RSVP</a>
</div>
</div>
{% endif %}
{% else %}
<div class='pad1y keyline-top'>
<strong class='quiet small block space-bottom1'>Posted {{item.date | date:"%b %d %Y"}} {% if item.author %}by {{item.author}}{% endif %}</strong>
</div>
{% endif %}
{% endfor %}
<!-- Pagination links -->
<div class='col12 center small strong space pad2y'>
{% if paginator.previous_page %}
{% if paginator.previous_page == 1 %}
<a href='{{site.baseurl}}/' class='button fill-blue icon left-arrow'>Newer</a>
{% else %}
<a href='{{site.baseurl}}/page{{ paginator.previous_page }}' class='button fill-blue icon left-arrow'>Newer</a>
{% endif %}
{% endif %}
{% if paginator.next_page %}
<a href='{{site.baseurl}}/page{{ paginator.next_page }}' class='button fill-blue rcon right-arrow'>Older</a>
{% endif %}
</div>