Fix sorting to work properly with lowercase/uppercase names
This commit is contained in:
1 parent
da4da8d0cf
commit
4dcba4c832
1 file changed
+1
-1
@@ -98,7 +98,7 @@ end if ENV['ANALYTICS_ID']
|
||||
|
||||
helpers do
|
||||
def themes
|
||||
data.themes.sort_by { |theme| theme['name'] }.map do |theme|
|
||||
data.themes.sort_by { |theme| theme['name'].downcase }.map do |theme|
|
||||
OpenStruct.new(theme.merge(
|
||||
slug: theme['name'].parameterize.underscore,
|
||||
digest: Digest::MD5.new.hexdigest(theme['colors'])
|
||||
|
||||
Reference in new issue
Block a user