Skip to content

Commit

Permalink
Generalize publications list
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Oct 22, 2023
1 parent 6eca220 commit 90e25aa
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 133 deletions.
30 changes: 30 additions & 0 deletions _includes/publications.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<div class="mv3">
{% for pub in include.publications %}
<div class="mt4 mt3-ns flex flex-row-ns flex-column">
{% assign thumb = 'assets' | append: pub.url | replace: '.html',
'_thumb.png' %}
<div
class="h3 mr3-ns mb2 mb0-ns flex-shrink-0 preview-image ba b--black-05 db"
style="background-image: url('{{ thumb | relative_url }}')"
></div>
<div class="measure-wide">
<div class="mb1">
<a href="{{ pub.url }}" class="b link black hover-cmu-red"
>{{ pub.title }}</a
>
<span class="fw2">
{% for author in pub.authors %}{% include person name=author %}{%
unless forloop.last %}, {% endunless %}{% endfor %}</span
>, <span>{{ pub.venue }} {{ pub.year }}</span>
{% if pub.awards %}
<span class="cmu-red mv1 b nowrap">
{% for award in pub.awards %}{{ award }}{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
{% endif %}
</div>
<a href="{{ pub.url }}" class="cta">Show details</a>
</div>
</div>
{% endfor %}
</div>
25 changes: 1 addition & 24 deletions _posts/2022-04-27-chi2022.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,27 +10,4 @@ Below are the CHI 2022 papers featuring DIG lab members:
{% assign chi_pubs = site.publications | where: "venue", "CHI" %}
{% assign chi2022_pubs = chi_pubs | where: "year", "2022" %}

<div class="mv3">
{% for pub in chi2022_pubs %}
<div class="mt4 mt3-ns flex flex-row-ns flex-column">
{% assign thumb = 'assets' | append: pub.url | replace: '.html',
'_thumb.png' %}
<div
class="h3 mr3-ns mb2 mb0-ns flex-shrink-0 preview-image ba b--black-05 db"
style="background-image: url('{{ thumb | relative_url }}')"
></div>
<div class="measure-wide">
<div class="mb1">
<a href="{{ pub.url }}" class="b link black hover-cmu-red"
>{{ pub.title }}</a
>
<span class="fw2">
{% for author in pub.authors %}{% include person name=author %}{%
unless forloop.last %}, {% endunless %}{% endfor %}</span
>, <span class="nowrap">{{ pub.venue }} {{ pub.year }}</span>
</div>
<a href="{{ pub.url }}" class="cta">Show details</a>
</div>
</div>
{% endfor %}
</div>
{% include publications.html publications=chi2022_pubs %}
25 changes: 1 addition & 24 deletions _posts/2022-06-13-eurovis22.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,4 @@ Frank and Will will be representing the DIG lab in Rome at EuroVis! They will pr
{% assign vis_pubs = site.publications | where: "venue", "EuroVis" %}
{% assign vis2022_pubs = vis_pubs | where: "year", "2022" %}

<div class="mv3">
{% for pub in vis2022_pubs %}
<div class="mt4 mt3-ns flex flex-row-ns flex-column">
{% assign thumb = 'assets' | append: pub.url | replace: '.html',
'_thumb.png' %}
<div
class="h3 mr3-ns mb2 mb0-ns flex-shrink-0 preview-image ba b--black-05 db"
style="background-image: url('{{ thumb | relative_url }}')"
></div>
<div class="measure-wide">
<div class="mb1">
<a href="{{ pub.url }}" class="b link black hover-cmu-red"
>{{ pub.title }}</a
>
<span class="fw2">
{% for author in pub.authors %}{% include person name=author %}{%
unless forloop.last %}, {% endunless %}{% endfor %}</span
>, <span class="nowrap">{{ pub.venue }} {{ pub.year }}</span>
</div>
<a href="{{ pub.url }}" class="cta">Show details</a>
</div>
</div>
{% endfor %}
</div>
{% include publications.html publications=vis2022_pubs %}
25 changes: 1 addition & 24 deletions _posts/2022-10-11-vis2022.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,4 @@ In addition, the following VIS 2022 papers feature DIG lab members:
{% assign vis_pubs = site.publications | where: "venue", "VIS" %}
{% assign vis2022_pubs = vis_pubs | where: "year", "2022" %}

<div class="mv3">
{% for pub in vis2022_pubs %}
<div class="mt4 mt3-ns flex flex-row-ns flex-column">
{% assign thumb = 'assets' | append: pub.url | replace: '.html',
'_thumb.png' %}
<div
class="h3 mr3-ns mb2 mb0-ns flex-shrink-0 preview-image ba b--black-05 db"
style="background-image: url('{{ thumb | relative_url }}')"
></div>
<div class="measure-wide">
<div class="mb1">
<a href="{{ pub.url }}" class="b link black hover-cmu-red"
>{{ pub.title }}</a
>
<span class="fw2">
{% for author in pub.authors %}{% include person name=author %}{%
unless forloop.last %}, {% endunless %}{% endfor %}</span
>, <span class="nowrap">{{ pub.venue }} {{ pub.year }}</span>
</div>
<a href="{{ pub.url }}" class="cta">Show details</a>
</div>
</div>
{% endfor %}
</div>
{% include publications.html publications=vis2022_pubs %}
31 changes: 1 addition & 30 deletions _posts/2023-10-19-vis2023.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,33 +14,4 @@ Additionally, the following VIS 2023 papers feature DIG lab members:
{% assign vis_pubs = site.publications | where: "venue", "VIS" %}
{% assign vis2023_pubs = vis_pubs | where: "year", "2023" %}

<div class="mv3">
{% for pub in vis2023_pubs %}
<div class="mt4 mt3-ns flex flex-row-ns flex-column">
{% assign thumb = 'assets' | append: pub.url | replace: '.html',
'_thumb.png' %}
<div
class="h3 mr3-ns mb2 mb0-ns flex-shrink-0 preview-image ba b--black-05 db"
style="background-image: url('{{ thumb | relative_url }}')"
></div>
<div class="measure-wide">
<div class="mb1">
<a href="{{ pub.url }}" class="b link black hover-cmu-red"
>{{ pub.title }}</a
>
<span class="fw2">
{% for author in pub.authors %}{% include person name=author %}{%
unless forloop.last %}, {% endunless %}{% endfor %}</span
>, <span>{{ pub.venue }} {{ pub.year }}</span>
{% if pub.awards %}
<span class="cmu-red mv1 b nowrap">
{% for award in pub.awards %}{{ award }}{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
{% endif %}
</div>
<a href="{{ pub.url }}" class="cta">Show details</a>
</div>
</div>
{% endfor %}
</div>
{% include publications.html publications=vis2023_pubs %}
33 changes: 2 additions & 31 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,37 +124,8 @@ <h2 class="f3">Recent Publications</h2>

<a class="cta" href="/publications">Show all</a>

<div class="mv3">
{% assign recent_pubs = site.publications | reverse %} {% for pub in
recent_pubs limit:5 %}
<div class="mt4 mt3-ns flex flex-row-ns flex-column">
{% assign thumb = 'assets' | append: pub.url | replace: '.html',
'_thumb.png' %}
<div
class="h3 mr3-ns mb2 mb0-ns flex-shrink-0 preview-image ba b--black-05 db"
style="background-image: url('{{ thumb | relative_url }}')"
></div>
<div class="measure-wide">
<div class="mb1">
<a href="{{ pub.url }}" class="b link black hover-cmu-red"
>{{ pub.title }}</a
>
<span class="fw2">
{% for author in pub.authors %}{% include person name=author %}{%
unless forloop.last %}, {% endunless %}{% endfor %}</span
>, <span>{{ pub.venue }} {{ pub.year }}</span>
{% if pub.awards %}
<span class="cmu-red mv1 b nowrap">
{% for award in pub.awards %}{{ award }}{% unless forloop.last %}, {% endunless %}
{% endfor %}
</span>
{% endif %}
</div>
<a href="{{ pub.url }}" class="cta">Show details</a>
</div>
</div>
{% endfor %}
</div>
{% assign recent_pubs = site.publications | reverse %} {% for pub in recent_pubs limit:5 %}
{% include publications.html publications=recent_pubs %}

<a class="cta" href="/publications">Show all</a>
</section>
Expand Down

0 comments on commit 90e25aa

Please sign in to comment.