-
Notifications
You must be signed in to change notification settings - Fork 39
/
Copy pathproject.html
128 lines (114 loc) · 3.21 KB
/
project.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
---
layout: page
---
{% assign id = page.url | split: '/' | last %}
<h1>{{ page.name }}</h1>
<div class="usa-grid-full">
<div class="usa-width-two-thirds">
<h2>Description</h2>
{{ content }}
{% if page.gallery.size > 0 %}
<h2>Gallery</h2>
<img src="/assets/img/publications/fullsize/{{ page.gallery.first[0] }}">
<small>{{ page.gallery.first[1] }}</small>
<br>
{% for image in page.gallery %}
<a href="/assets/img/publications/fullsize/{{ image[0] }}"
data-lightbox="lightbox-group"
data-title="{{ image[1] }}"
><img class="thumb"
src="/assets/img/publications/thumbnail/{{ image[0] }}"
alt="{{ image[1] }}"></a>
{% endfor %}
{% endif %}
{% if page.publications.size > 0 %}
<h2>Publications</h2>
{% include list-publications.html %}
{% endif %}
{% if page.websites.size > 0 %}
<h2>Websites</h2>
<ul>
{% for website in page.websites %}
<li>
<a href="{{ website.url }}">{{ website.name }}</a>
{% if website.description %}
<br>
<small>{{ website.description }}</small>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% capture media_list %}
{% for media in site.data.media %}
{% for project in media.projects %}
{% if project == id %}
<dt>
<b>{{ media.outlet }} ({{ media.date }}) - </b>
<a href="{{ media.url }}">{{ media.title }}</a>
</dt>
<dd>
{{ media.blurb }}
</dd>
{% endif %}
{% endfor %}
{% endfor %}
{% endcapture %}
{% assign media_list = media_list | strip %}
{% if media_list != '' %}
<h3 id="media">Media</h3>
<dl>
{{ media_list }}
</dl>
{% endif %}
{% if page.github_repositories.size > 0 or page.docker_repositories.size > 0 %}
<h2>Software</h2>
{% if page.github_repositories.size > 0 %}
<h3>GitHub</h3>
<ul>
{% for repository in page.github_repositories %}
<li>
<a href="{{ repository.url }}">{{ repository.name }}</a>
{% if repository.description %}
<br>
<small>{{ repository.description }}</small>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% if page.docker_repositories.size > 0 %}
<h3>Docker</h3>
<ul>
{% for repository in page.docker_repositories %}
<li>
<a href="{{ repository.url }}">{{ repository.name }}</a>
{% if repository.description %}
<br>
<small>{{ repository.description }}</small>
{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
{% endif %}
{% if page.grants.size > 0 %}
<h2>Funding</h2>
{% include list-grants.html %}
{% endif %}
</div>
<aside class="usa-width-one-third">
<h3>Team</h3>
{% include list-members.html %}
{% if page.collaborators.size > 0 %}
<h3>Collaborators</h3>
{% include list-collaborators.html %}
{% endif %}
<h3>Status</h3>
{% if page.active %}
Active
{% else %}
Inactive
{% endif %}
</aside>
</div>