Fix sorting to work properly with lowercase/uppercase names
This commit is contained in:
@@ -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