Skip to content

Commit

Permalink
fixed a bug where single posts don't have a slug
Browse files Browse the repository at this point in the history
  • Loading branch information
fauno committed May 24, 2017
1 parent 2d46582 commit 1810fbc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/jekyll-pandoc-multiple-formats/pandoc_file.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def initialize(site, format, posts, title = nil)
@title = posts.data['title'] unless title
end

@slug = Utils.slugify(title)
@slug = Utils.slugify(@title)
end

def path
Expand Down
2 changes: 1 addition & 1 deletion lib/jekyll-pandoc-multiple-formats/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module JekyllPandocMultipleFormats
VERSION = '0.2.9'
VERSION = '0.2.9.1'
end

0 comments on commit 1810fbc

Please sign in to comment.