diff --git a/_plugins/jekyll-strapi-api/lib/b-generate-posts.rb b/_plugins/jekyll-strapi-api/lib/b-generate-posts.rb index 7beb8db..1676b7a 100644 --- a/_plugins/jekyll-strapi-api/lib/b-generate-posts.rb +++ b/_plugins/jekyll-strapi-api/lib/b-generate-posts.rb @@ -171,10 +171,10 @@ author_ids = parsed_authors_file["data"] # create the filename file_name = "#{date.strftime('%Y-%m-%d')}-#{slug}#{file_ending}" - + pp "#{jekyll_post_path}#{file_name}" # let us put humpty dumpty back together again! # create a new collection type post *.md or *.html - p = File.open( "#{jekyll_post_path}#{file_name}","w" ) + p = File.new( "#{jekyll_post_path}#{file_name}","w" ) # create document.md or document.html content in Jekyll yaml formatting p.puts "---"