lib/jekyll/zettel/globals.rb in jekyll-zettel-0.5.0 vs lib/jekyll/zettel/globals.rb in jekyll-zettel-0.5.2

- old
+ new

@@ -1,16 +1,16 @@ module Jekyll module Zettel # Enrich site variables with some meta data class Globals < Jekyll::Generator - priority :highest + priority :lowest def generate(site) - site.data['url2page'] = {} + site.data['url_page'] = {} site.pages.each do |page| - site.data['url2page'][page.url] = page + site.data['url_page'][page.url] = page end end end end