diff --git a/lib/jekyll/utils.rb b/lib/jekyll/utils.rb index 34dff9f3..67fc6637 100644 --- a/lib/jekyll/utils.rb +++ b/lib/jekyll/utils.rb @@ -109,11 +109,11 @@ module Jekyll # Returns the given filename or title in lowercase, with every # sequence of spaces and non-alphanumeric characters replaced with a # hyphen. - def slugify(name) - if name.nil? + def slugify(string) + if string.nil? nil else - name.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-') + string.downcase.gsub(/[^\w]/, " ").strip.gsub(/\s+/, '-') end end