From b0659cad2414262ea49514bb7e4dc4a3e144a9ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=A7=89=20infominer?= Date: Fri, 14 Apr 2023 09:53:17 +0530 Subject: [PATCH] cleanup \ linting --- _includes/archive-single.html | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/_includes/archive-single.html b/_includes/archive-single.html index 7b58db68..222f4750 100644 --- a/_includes/archive-single.html +++ b/_includes/archive-single.html @@ -17,13 +17,7 @@ {% endif %} -

- {% if post.link %} - {{ title }} Permalink - {% else %} - {{ title }} - {% endif %} -

+
{{ title }} {% if post.excerpt %}

{{ post.excerpt | markdownify | strip_html | truncate: 300 }}

{% endif %}

Updated: {{ post.last_modified_at }} {% include read-time.html %}

@@ -35,16 +29,17 @@ {% if company.parent %}{% assign tags = company.parent | push: post.name %}{% endif %} {% if company.related != Nil %} {% if company.related contains ';'%} - {% assign tags = company.related |split: ';' | push: post.name %} - {%else %} - {% assign tags = company.related | push: post.name %} - {%endif%} + {% assign tgs = company.related |split: '; ' | push: post.name %} + {% assign tags = tags | concat: tgs %} + {% else %} + {% assign tags = tags | push: company.related | push: post.name %} + {% endif%} {% endif %} {% if tags != Nil %} - {% assign sorted_tags = tags | concat: post.tags | push: post.name | uniq | compact | sort %} + {% assign sorted_tags = tags | concat: post.tags | uniq | compact | sort_natural %} {% elsif post.tags !=Nil %} - {% assign sorted_tags = post.tags | push: post.name | uniq | compact | sort_natural %} - {%endif%} + {% assign sorted_tags = post.tags | uniq | compact | sort_natural %} + {% endif%} {% endif %} {% endfor %} {% else %} @@ -52,6 +47,6 @@ {% endif %} {% for tag in sorted_tags %}
{{ tag }}
- {% endfor %}
+ {% endfor %} \ No newline at end of file