Fix tags page

This commit is contained in:
2023-11-05 16:45:36 +11:00
parent 55cd087cd2
commit acd4a18f44
3 changed files with 7 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ module Adamantium
/[a-z]/.match?(grouper) ? grouper : "#"
}
.sort
.map { |group, tags| {group: group, tags: tags.map {|tag| {tag: tag, count: tag.posts.count} }} }
end
end
end