-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathproject.html
65 lines (60 loc) · 1.79 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
---
layout: default
---
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": ["Organization", "Project", "ResearchProject"],
{% if page.description %}
"description": "{{ page.description }}",
{% endif %}
"name": "{{ page.title }}",
{% if page.website %}
"url": "{{ page.website }}",
{% endif %}
{% if page.logo %}
"logo": "{{site.url}}/images/logo/{{ page.logo }}",
{% endif %}
{% if page.start_date %}
"foundingDate": "{{ page.start_date }}",
{% endif %}
{% if page.end_date %}
"dissolutionDate": "{{ page.end_date }}",
{% endif %}
{% if page.project_reference %}
"funding": ["{{ page.project_reference | join: '", "' }}"]
{% endif %}
}
</script>
<article class="post">
<header class="post-header">
<h1 class="post-title">{{ page.title }}</h1>
</header>
<div class="post-content">
{% if page.logo %}
<img title="{{page.title}}" src="/images/logo/{{page.logo}}" alt="{{page.title}} - {{page.description}}" class="large-logo"/>
{% endif %}
{% if page.description %}
<h2 class="post-tagline">{{ page.description }}</h2>
{% endif %}
<ul>
{% if page.website %}
<li>Website: <a href="{{page.website}}">{{page.website}}</a></li>
{% endif %}
{% if page.start_date %}
<li>Started: {{page.start_date | date: '%B %-d, %Y' }}</li>
{% endif %}
{% if page.duration %}
<li>Duration: {{page.duration}}</li>
{% endif %}
{% if page.project_reference %}
<li>Project reference:
{% for dur in page.project_reference %}
<a href="{{ dur | split: ' ' | first }}">{{ dur }}</a>
{% endfor %}
</li>
{% endif %}
</ul>
{{ content }}
</div>
</article>