Skip to content
Snippets Groups Projects
Unverified Commit 9636f53d authored by Patrick M. Niedzielski's avatar Patrick M. Niedzielski
Browse files

Generate Pandoc file with correct slug

This patch fixes a bug where the slug of a generated pandoc file will
be `nil` if the title argument passed to the constructor is `nil`.
Instead, the slug should be based on the title chosen earlier in the
constructor.
parent 6e1aa49b
No related branches found
No related tags found
No related merge requests found
......@@ -46,7 +46,7 @@ module Jekyll
@title = title or posts.data['title']
end
@slug = Utils.slugify(title)
@slug = Utils.slugify(@title)
end
def path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment