Changed layout template, to correctly handle custom.js when --page-file-dir is set

This commit is contained in:
Joshua Swanson
2015-08-05 11:03:08 +01:00
parent ba142e3b19
commit 73e61dbcff
3 changed files with 12 additions and 4 deletions
+8
View File
@@ -20,10 +20,18 @@ module Precious
!@path.nil?
end
def page_dir
@page_dir
end
def base_url
@base_url
end
def custom_path
"#{@base_url}#{@page_dir.nil? ? '' : '/'}#{@page_dir}"
end
def css # custom css
@css
end