diff --git a/layouts/partials/related_articles.html b/layouts/partials/related_articles.html index 71515be..ab23e49 100644 --- a/layouts/partials/related_articles.html +++ b/layouts/partials/related_articles.html @@ -6,16 +6,18 @@ ) "Params.tags" "intersect" .Params.tags ) "Permalink" "ne" .Permalink }} - {{ if site.Params.randomRelated | default false }} - {{ $postsList = shuffle $postsList }} - {{ end }} -
-
-

More posts like this

-
- {{ range first (.Site.Params.relatedArticlesNum | default 2) $postsList }} - {{- partial "article_card.html" . -}} - {{ end }} + {{ if $postsList }} + {{ if site.Params.randomRelated | default false }} + {{ $postsList = shuffle $postsList }} + {{ end }} +
+
+

More posts like this

+
+ {{ range first (.Site.Params.relatedArticlesNum | default 2) $postsList }} + {{- partial "article_card.html" . -}} + {{ end }} +
-
+ {{ end }} {{ end }}