generated from greenelab/lab-website-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist.html
58 lines (53 loc) · 1.26 KB
/
list.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
56
57
58
{% assign emptyarray = "" | split: "," %}
{% assign data = site.data[include.data]
| default: site[include.data]
| default: emptyarray
| data_filter: include.filters
%}
{% assign years = data
| group_by_exp: "d", "d.date | date: '%Y'"
| sort: "name"
| reverse
%}
{% for year in years %}
{% assign data = year.items %}
{% if years.size > 1 %}
{{--}}<h3 id="{{ year.name }}">{{ year.name }}</h3>
{% assign data = data | sort: "date" | reverse %}
{% endif %}
{% for d in data %}
{% assign style = d.style | default: include.style %}
{%
include {{ include.component | append: ".html" }}
author=d.author
authors=d.authors
buttons=d.buttons
caption=d.caption
content=d.content
date=d.date
description=d.description
excerpt=d.excerpt
height=d.height
icon=d.icon
id=d.id
image=d.image
last_modified_at=d.last_modified_at
link=d.link
lookup=d.lookup
name=d.name
publisher=d.publisher
repo=d.repo
role=d.role
slug=d.slug
style=style
subtitle=d.subtitle
tags=d.tags
text=d.text
title=d.title
tooltip=d.tooltip
type=d.type
url=d.url
width=d.width
%}
{% endfor %}
{% endfor %}