Skip to content

Commit f57fb4a

Browse files
committed
Add approach links again
1 parent 5d6f7af commit f57fb4a

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

_layouts/publication.liquid

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,26 @@ layout: default
6666
{% endfor %}
6767
</p>
6868
{% endif %}
69+
<!-- Info Box regarding approaches. Use page.approaches -->
70+
{% if page.approaches %}
71+
<div class="alert alert-warning" style="background: none;">
72+
{% if page.approaches.size > 1 %}
73+
<strong>This publication is related to the following approaches:</strong>
74+
<ul style="margin-bottom: 0;">
75+
{% for approach in page.approaches %}
76+
<li>
77+
<a href="/approaches/{{ approach | slugify }}">{{ approach }}</a>
78+
</li>
79+
{% endfor %}
80+
</ul>
81+
{% else %}
82+
<strong>This publication is related to the following approach:</strong>
83+
{% assign approach = page.approaches[0] %}
84+
<a href="/approaches/{{ approach | slugify }}">{{ approach }}</a>
85+
{% endif %}
86+
</div>
87+
{% endif %}
88+
6989
{{ content }}
7090

7191
{% if page.links %}

0 commit comments

Comments
 (0)