We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 14b0e25 + 2657d38 commit eb0555cCopy full SHA for eb0555c
1 file changed
_layouts/entry.html
@@ -27,7 +27,10 @@
27
{% if page.algorithm.condition %}<dt>condition</dt><dd>{{ page.algorithm.condition }}</dd>{% endif %}
28
{% if page.algorithm.time_complexity %}<dt>time complexity</dt><dd>{{ page.algorithm.time_complexity }}</dd>{% endif %}
29
{% if page.algorithm.space_complexity %}<dt>space complexity</dt><dd>{{ page.algorithm.space_complexity }}</dd>{% endif %}
30
- {% if page.algorithm.aliases %}<dt>aliases</dt>{% for alias in page.algorithm.aliases %}<dd>{{ alias }}</dd>{% endfor %}{% endif %}
+ {% assign aliases_size = entry.algorithm.aliases | size %}
31
+ {% if aliases_size != 0 %}
32
+ {% if page.algorithm.aliases %}<dt>aliases</dt>{% for alias in page.algorithm.aliases %}<dd>{{ alias }}</dd>{% endfor %}{% endif %}
33
+ {% endif %}
34
{% endif %}
35
</dl>
36
</div>
0 commit comments