From b4a27886265b90597f3e8dde5880318b90c344d9 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Mon, 20 Oct 2014 21:45:17 -0700 Subject: [PATCH] Just swallow it if there is no content for the excerpt to parse. --- lib/jekyll/excerpt.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/jekyll/excerpt.rb b/lib/jekyll/excerpt.rb index 958e3f3c..41d4976c 100644 --- a/lib/jekyll/excerpt.rb +++ b/lib/jekyll/excerpt.rb @@ -106,7 +106,7 @@ module Jekyll # Returns excerpt String def extract_excerpt(post_content) separator = site.config['excerpt_separator'] - head, _, tail = post_content.partition(separator) + head, _, tail = post_content.to_s.partition(separator) "" << head << "\n\n" << tail.scan(/^\[[^\]]+\]:.+$/).join("\n") end