Expose Jekyll version to templates

Make available `site.version` to liquid
This commit is contained in:
Pat Hawks 2013-08-16 20:30:26 -07:00
parent ac4ca1edc3
commit 2744b66fac
1 changed files with 1 additions and 0 deletions

View File

@ -312,6 +312,7 @@ module Jekyll
def site_payload
{"site" => self.config.merge({
"time" => self.time,
"version" => Jekyll.VERSION,
"posts" => self.posts.sort { |a, b| b <=> a },
"pages" => self.pages,
"html_pages" => self.pages.reject { |page| !page.html? },