From 09ed3408358a47a2fcad7d5a18ff738aca239053 Mon Sep 17 00:00:00 2001 From: "maul.esel" Date: Mon, 2 Sep 2013 14:25:13 +0200 Subject: [PATCH] Fix include tag to avoid NameError --- lib/jekyll/tags/include.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/jekyll/tags/include.rb b/lib/jekyll/tags/include.rb index 74858b0a..d98df06f 100644 --- a/lib/jekyll/tags/include.rb +++ b/lib/jekyll/tags/include.rb @@ -51,7 +51,9 @@ eos def render(context) includes_dir = File.join(context.registers[:site].source, '_includes') - return error if error = validate_file(includes_dir) + if error = validate_file(includes_dir) + return error + end source = File.read(File.join(includes_dir, @file)) partial = Liquid::Template.parse(source)