Skip to content

Commit 9e5f5a1

Browse files
committed
Fix 3
1 parent 7acabee commit 9e5f5a1

2 files changed

Lines changed: 28 additions & 20 deletions

File tree

_includes/poster-list.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{% assign posters = site.data.posters | sort: "date" | reverse %}
2+
{% for poster in posters %}
3+
<div class="citation-container">
4+
<div class="citation">
5+
<div class="citation-text">
6+
{% include icon.html icon="fa-solid fa-chalkboard" %}
7+
<a href="{{ poster.pdf | relative_url }}" target="_blank" class="citation-title">{{ poster.title }}</a>
8+
<div class="citation-authors">
9+
{%- for author in poster.authors -%}
10+
{%- if author.member -%}
11+
<a href="{{ '/members/' | append: author.member | relative_url }}">{{ author.name }}</a>
12+
{%- else -%}
13+
{{ author.name }}
14+
{%- endif -%}
15+
{%- unless forloop.last %}, {% endunless -%}
16+
{%- endfor -%}
17+
</div>
18+
<div class="citation-details">
19+
{% if poster.event %}<span class="citation-publisher">{{ poster.event }}</span>&nbsp;·&nbsp;{% endif %}<span class="citation-date">{{ poster.date | date: "%Y" }}</span>
20+
</div>
21+
<div class="citation-buttons">
22+
{% include button.html type="link" icon="fa-solid fa-file-pdf" text="View PDF" link=poster.pdf style="bare" %}
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
{% endfor %}

posters/index.md

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,4 @@ nav:
99

1010
{% include section.html %}
1111

12-
{% assign posters = site.data.posters | sort: "date" | reverse %}
13-
{% for poster in posters %}
14-
<div class="citation-container" markdown="0">
15-
<div class="citation">
16-
<div class="citation-text">
17-
{% include icon.html icon="fa-solid fa-chalkboard" %}
18-
<a href="{{ poster.pdf | relative_url }}" target="_blank" class="citation-title">{{ poster.title }}</a>
19-
<div class="citation-authors">
20-
{% for author in poster.authors %}{% if author.member %}<a href="{{ '/members/' | append: author.member | relative_url }}">{{ author.name }}</a>{% else %}{{ author.name }}{% endif %}{% unless forloop.last %}, {% endunless %}{% endfor %}
21-
</div>
22-
<div class="citation-details">
23-
{% if poster.event %}<span class="citation-publisher">{{ poster.event }}</span>&nbsp;·&nbsp;{% endif %}<span class="citation-date">{{ poster.date | date: "%Y" }}</span>
24-
</div>
25-
<div class="citation-buttons">
26-
{% include button.html type="link" icon="fa-solid fa-file-pdf" text="View PDF" link=poster.pdf style="bare" %}
27-
</div>
28-
</div>
29-
</div>
30-
</div>
31-
{% endfor %}
12+
{% include poster-list.html %}

0 commit comments

Comments
 (0)