mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 01:36:13 +00:00
Dev Docs: Attempt To Fix Site Build Error On ntpd1.template
Reported in IRC
This commit is contained in:
parent
3640939d5b
commit
84f5b6f160
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue