From 18f3d7660357d352b20e9e20484f77a9b3e3659e Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sat, 17 Jan 2015 14:59:44 -0800 Subject: [PATCH] Ensure Post#excerpt_separator always returns a string. --- lib/jekyll/post.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/post.rb b/lib/jekyll/post.rb index c94d66b6..384a10ee 100644 --- a/lib/jekyll/post.rb +++ b/lib/jekyll/post.rb @@ -124,7 +124,7 @@ module Jekyll # # Returns the post excerpt_separator def excerpt_separator - data.fetch('excerpt_separator') { site.config['excerpt_separator'].to_s } + (data['excerpt_separator'] || site.config['excerpt_separator']).to_s end # Turns the post slug into a suitable title