Expose site.static_files to Liquid

This commit is contained in:
Parker Moore 2014-02-19 13:04:33 -05:00
parent 45a5671c55
commit 6e40338f9e
1 changed files with 8 additions and 7 deletions

View File

@ -307,13 +307,14 @@ module Jekyll
def site_payload def site_payload
{"jekyll" => { "version" => Jekyll::VERSION }, {"jekyll" => { "version" => Jekyll::VERSION },
"site" => self.config.merge({ "site" => self.config.merge({
"time" => self.time, "time" => self.time,
"posts" => self.posts.sort { |a, b| b <=> a }, "posts" => self.posts.sort { |a, b| b <=> a },
"pages" => self.pages, "pages" => self.pages,
"html_pages" => self.pages.reject { |page| !page.html? }, "static_files" => self.static_files
"categories" => post_attr_hash('categories'), "html_pages" => self.pages.reject { |page| !page.html? },
"tags" => post_attr_hash('tags'), "categories" => post_attr_hash('categories'),
"data" => site_data})} "tags" => post_attr_hash('tags'),
"data" => site_data})}
end end
# Filter out any files/directories that are hidden or backup files (start # Filter out any files/directories that are hidden or backup files (start