Skip to content

Commit 8bbfaf6

Browse files
committed
Use Utils.slugify for slugging
1 parent 689debf commit 8bbfaf6

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/jekyll-archives/archive.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ def initialize(site, title, type, posts)
3232

3333
# Generate slug if tag or category (taken from jekyll/jekyll/features/support/env.rb)
3434
if title.is_a? String
35-
@slug = title.split(" ").map { |w|
36-
w.downcase.gsub(/[^\w]/, '')
37-
}.join("-")
35+
@slug = Utils.slugify(title)
3836
end
3937

4038
# Use ".html" for file extension and url for path

0 commit comments

Comments
 (0)