mirror of
https://github.com/Decentralized-ID/decentralized-id.github.io.git
synced 2025-05-02 14:26:33 -04:00
fix for post.tags = Nil
This commit is contained in:
parent
c199a4872f
commit
30b628d17d
1 changed files with 6 additions and 10 deletions
|
@ -35,19 +35,15 @@
|
|||
{% if company.parent %}{% assign tags = company.parent | push: post.name %}{% endif %}
|
||||
{% if company.related != Nil %}
|
||||
{% if company.related contains ';'%}
|
||||
{% assign related = company.related |split: ';' | push: post.name %}
|
||||
{% else %}
|
||||
{% if tags != Nil %}
|
||||
{% assign tags = tags | push: company.related %}
|
||||
{% else %}
|
||||
{% assign tags = company.related %}
|
||||
{%endif%}
|
||||
{% endif %}
|
||||
{% assign tags = company.related |split: ';' | push: post.name %}
|
||||
{%else %}
|
||||
{% assign tags = company.related %}
|
||||
{%endif%}
|
||||
{% endif %}
|
||||
{% if tags != Nil %}
|
||||
{% assign sorted_tags = tags | concat: post.tags | uniq | compact | sort %}
|
||||
{% else %}
|
||||
{% assign sorted_tags = post.tags | push: post.name | uniq | compact | sort_natural %}
|
||||
{% elsif post.tags !=Nil %}
|
||||
{% assign sorted_tags = post.tags | push: post.name | uniq | compact | sort_natural %}
|
||||
{%endif%}
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue