message: Improve Hugo build speed by optimizing related company computation
diff: {{ $num_categories := (cond (isset .Params "categories") .Params.categories slice) | len }}
  {{ $num_countries := (.Param "relevant-countries") | len }}
  - {{ range (where .Site.Pages "Section" "company") }}
  + {{ $lowest_score := 999999 }}
  +
  + {{ range (where (where .Site.Pages "Section" "company") "Params.categories" "intersect" .Params.categories) }}
  + {{ if and (ne .Permalink $.Permalink) (not .Params.nsfw) }}
  {{ $num_common_categories := intersect $.Params.categories .Params.categories | len }}
  {{ $num_common_countries := intersect ($.Param "relevant-countries") (.Param "relevant-countries") | len }}
  - {{ if and (gt $num_common_categories 0) (ne .Permalink $.Permalink) (not .Params.nsfw) }}
  {{ $score := add (div (float $num_common_categories) $num_categories) (div $num_common_countries $num_countries) }}
  +
  + {{ if (or (lt ($related_pages | len) 5) (gt $score $lowest_score)) }}
  {{ $related_pages = $related_pages | append (dict "page" . "score" $score) }}
  +
  + {{ if lt $score $lowest_score }}
  + {{ $lowest_score = $score }}
  + {{ end }}
  + {{ end }}
  {{ end }}
  {{ end }}
  {{ $related_pages = sort $related_pages "score" "desc" }}
  