From 1810fbc078ccfef92e32cb76b5a1d1fab2d56d8f Mon Sep 17 00:00:00 2001 From: fauno Date: Wed, 24 May 2017 16:21:38 -0300 Subject: [PATCH] fixed a bug where single posts don't have a slug --- lib/jekyll-pandoc-multiple-formats/pandoc_file.rb | 2 +- lib/jekyll-pandoc-multiple-formats/version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb b/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb index 14b698f..f60ca1a 100644 --- a/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb +++ b/lib/jekyll-pandoc-multiple-formats/pandoc_file.rb @@ -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 diff --git a/lib/jekyll-pandoc-multiple-formats/version.rb b/lib/jekyll-pandoc-multiple-formats/version.rb index 4a7e317..887a09b 100644 --- a/lib/jekyll-pandoc-multiple-formats/version.rb +++ b/lib/jekyll-pandoc-multiple-formats/version.rb @@ -1,3 +1,3 @@ module JekyllPandocMultipleFormats - VERSION = '0.2.9' + VERSION = '0.2.9.1' end