capitalize tags

This commit is contained in:
Francis 2021-05-03 18:30:17 +02:00
parent 45927db7a3
commit 3bda9bc5b2
No known key found for this signature in database
GPG key ID: 071BEA4C2B10077C

View file

@ -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|