Skip to content

Commit 9fa1ca9

Browse files
committed
Add projects section
1 parent cc53ced commit 9fa1ca9

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

_layouts/project.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
layout: default
3+
---
4+
<article class="container card">
5+
<div class="card-body">
6+
<h1 class="card-title">{{ page.title }}</h1>
7+
<p><em>{{ page.date | truncate: 4, "" }}, {{ page.authors | join: ", " }}</em></p>
8+
{{ content }}
9+
{% if page.slides %}
10+
<a class="btn btn-primary" href="/talks/slides/{{ page.slides }}">View the slides</a>
11+
{% endif %}
12+
</div>
13+
</article>

projects/index.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: default
3+
title: Projects
4+
---
5+
<div class="container">
6+
<h1>Projects</h1>
7+
<h2>Current</h2>
8+
{% capture currentYear %}{{ site.time | truncate: 4, "" }}{% endcapture %}
9+
{% for post in site.categories.projects %}
10+
{% capture postYear %}{{ post.date | truncate: 4, "" }}{% endcapture %}
11+
{% if currentYear != postYear %}
12+
{% assign currentYear = postYear %}
13+
<h2>{{ currentYear }}</h2>
14+
{% endif %}
15+
<article class="card">
16+
<div class="card-body">
17+
<h3 class="card-title">{{ post.title }}</h3>
18+
<p><em>{{ post.authors | join: ", " }}</em></p>
19+
{{ post.excerpt }}
20+
<a class="btn btn-primary btn-block" href="{{ post.url }}">Learn More</a>
21+
</div>
22+
</article>
23+
{% endfor %}
24+
</div>

0 commit comments

Comments
 (0)