Skip to content

Commit 4b2335f

Browse files
committed
Show listing if > 1
1 parent 86578da commit 4b2335f

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

_layouts/approach.liquid

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ layout: page
77

88
{% assign project_title = page.title %}
99
{% assign related = site.conferences | where_exp: 'conf', 'conf.approaches contains project_title' %}
10-
{% if related.size > 0 %}
10+
{% if related.size > 1 %}
1111
<section>
1212
<h2>Related Publications</h2>
1313
<ul>
@@ -22,4 +22,15 @@ layout: page
2222
{% endfor %}
2323
</ul>
2424
</section>
25+
{% elsif related.size == 1 %}
26+
<section>
27+
<h2>Related Publication</h2>
28+
<p>
29+
<a href="{{ related[0].url | relative_url }}">{{ related[0].title }}</a>
30+
{% if related[0].description -%}
31+
<br>
32+
<small>{{ related[0].description }}</small>
33+
{%- endif %}
34+
</p>
35+
</section>
2536
{% endif %}

0 commit comments

Comments
 (0)