Class: Jekyll::Zettel::Globals

Inherits:
Generator
  • Object
show all
Defined in:
lib/jekyll/zettel/globals.rb

Overview

Enrich site variables with some meta data

Instance Method Summary collapse

Instance Method Details

#generate(site) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/jekyll/zettel/globals.rb', line 8

def generate(site)
  site.data['url_page'] = {}

  site.pages.each do |page|
    site.data['url_page'][page.url] = page
  end
end