We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86578da commit 4b2335fCopy full SHA for 4b2335f
_layouts/approach.liquid
@@ -7,7 +7,7 @@ layout: page
7
8
{% assign project_title = page.title %}
9
{% assign related = site.conferences | where_exp: 'conf', 'conf.approaches contains project_title' %}
10
-{% if related.size > 0 %}
+{% if related.size > 1 %}
11
<section>
12
<h2>Related Publications</h2>
13
<ul>
@@ -22,4 +22,15 @@ layout: page
22
{% endfor %}
23
</ul>
24
</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>
36
{% endif %}
0 commit comments