Skip to content

Commit 8bec2d7

Browse files
committed
Merge pull request #41 from coneybeare/master
Merge pull request 41
2 parents 8abff77 + 308051d commit 8bec2d7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/jekyll-archives/archive.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def initialize(site, title, type, posts)
3434
@config = site.config['jekyll-archives']
3535

3636
# Generate slug if tag or category (taken from jekyll/jekyll/features/support/env.rb)
37-
if title.is_a? String
38-
@slug = Utils.slugify(title)
37+
if title.to_s.length
38+
@slug = Utils.slugify(title.to_s)
3939
end
4040

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

0 commit comments

Comments
 (0)