push name

This commit is contained in:
⧉ infominer 2023-04-08 16:47:31 +05:30
parent 28a90e4e66
commit 4d8d6f35cd

View File

@ -37,11 +37,11 @@
{% if company.related contains ';'%} {% if company.related contains ';'%}
{% assign tags = company.related |split: ';' | push: post.name %} {% assign tags = company.related |split: ';' | push: post.name %}
{%else %} {%else %}
{% assign tags = company.related %} {% assign tags = company.related | push: post.name %}
{%endif%} {%endif%}
{% endif %} {% endif %}
{% if tags != Nil %} {% if tags != Nil %}
{% assign sorted_tags = tags | concat: post.tags | uniq | compact | sort %} {% assign sorted_tags = tags | concat: post.tags | push: post.name | uniq | compact | sort %}
{% elsif post.tags !=Nil %} {% elsif post.tags !=Nil %}
{% assign sorted_tags = post.tags | push: post.name | uniq | compact | sort_natural %} {% assign sorted_tags = post.tags | push: post.name | uniq | compact | sort_natural %}
{%endif%} {%endif%}