Sha256: d4427103ec928155900249631e9937c11614f93c522bf0420621aeeb40eb1e80

Contents?: true

Size: 326 Bytes

Versions: 15

Compression:

Stored size: 326 Bytes

Contents

module Jekyll
  module Zettel
    # Enrich site variables with some meta data
    class Globals < Jekyll::Generator

      priority :lowest

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

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

    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
jekyll-zettel-0.7.2 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.7.1 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.7.0 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.10 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.9 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.8 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.7 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.5 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.4 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.3 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.2 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.1 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.6.0 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.5.3 lib/jekyll/zettel/globals.rb
jekyll-zettel-0.5.2 lib/jekyll/zettel/globals.rb