From 84f5b6f16080497f6822166bc452bcc44e505e95 Mon Sep 17 00:00:00 2001 From: "David A. Harding" Date: Wed, 25 Feb 2015 07:59:01 -0500 Subject: [PATCH] Dev Docs: Attempt To Fix Site Build Error On ntpd1.template Reported in IRC --- _plugins/inline-template.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/_plugins/inline-template.rb b/_plugins/inline-template.rb index 9de86591..36bfebbb 100644 --- a/_plugins/inline-template.rb +++ b/_plugins/inline-template.rb @@ -23,8 +23,11 @@ require 'yaml' def render(context) output = super + ## Workaround for inconsistent relative directory + path = File.expand_path(File.dirname(__FILE__)) + "/../" + data = YAML.load(output) - template = File.open(@template_name, mode="r") + template = File.open(path + @template_name, mode="r") @mytemplate = Liquid::Template.parse(template.read()) @mytemplate.render('entry' => data) end