forked from poole/poole
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
30 lines (26 loc) · 969 Bytes
/
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
---
---
<div>
{% assign projectsByYear = site.projects | group_by_exp:"project", "project.date | date: '%Y'" | reverse %}
{% for year in projectsByYear %}
<h1>{{ year.name }}</h1>
{% for project in year.items %}
<article class="page">
<h2 class="title">
<a href="{{ project.url | relative_url }}">{{ project.title }}</a>
</h2>
{%- if project.image %}
<a href="{{ project.url | relative_url }}">
<img class="thumbnail" src="{{ site.baseurl }}/assets/{{ project.image }}" alt="{{ project.title }}" />
</a>
{%- endif %}
{%- for status in project.status %}
{%- assign status-class = status | split: ":" | last | downcase | strip %}
<span class="progress-pill pill-{{ status-class }}">{{ status }}</span>
{%- endfor -%}
{%- assign excerpt = project.content | split: site.excerpt_separator | first %}
{{ excerpt }}
</article>
{% endfor %}
{% endfor %}
</div>