Skip to content

Commit 8ba36e6

Browse files
committed
use builtpubs snippet
1 parent 6e28262 commit 8ba36e6

File tree

4 files changed

+295
-254
lines changed

4 files changed

+295
-254
lines changed

_layouts/publication.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{%- assign allpubs = site.data.allpubs -%}
2+
{%- assign prevyear = null -%}
3+
{%- for pub in allpubs -%}
4+
{%- if pub.year != prevyear -%}
5+
{%- if prevyear != null %}
6+
</ul>
7+
{%- endif %}
8+
<h2 id="publications">{{ pub.year }}</h2>
9+
<ul class="publications">
10+
{% assign prevyear = pub.year -%}
11+
{%- endif -%}
12+
{%- include pubitem.html pub=pub -%}
13+
{%- endfor %}
14+
</ul>

buildpubs.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
---
2+
layout: publication
3+
title: Publications
4+
---

0 commit comments

Comments
 (0)