From 3bda9bc5b27a1d6d134b5c43bee63f79fe4782f6 Mon Sep 17 00:00:00 2001 From: Francis Date: Mon, 3 May 2021 18:30:17 +0200 Subject: [PATCH] capitalize tags --- lib/helpers/preprocess.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/helpers/preprocess.rb b/lib/helpers/preprocess.rb index 6c787de..09d4a8b 100644 --- a/lib/helpers/preprocess.rb +++ b/lib/helpers/preprocess.rb @@ -88,6 +88,7 @@ module PreprocessHelper type = type.to_s tags = @items.find_all("/#{type.downcase}/*/*") .flat_map { |i| i[:tags] || [] } + .flat_map { |i| i.split.map(&:capitalize).join(' ') } .uniq tags.each do |tag|