Class: Jekyll::Strapi::StrapiDrop

Inherits:
Liquid::Drop
  • Object
show all
Defined in:
lib/jekyll/strapi/drops.rb

Overview

Main Liquid Drop, handles lazy loading of collections to drops

Instance Method Summary collapse

Constructor Details

#initialize(site) ⇒ StrapiDrop

Returns a new instance of StrapiDrop.



53
54
55
# File 'lib/jekyll/strapi/drops.rb', line 53

def initialize(site)
  @site = site
end

Instance Method Details

#collectionsObject



57
58
59
# File 'lib/jekyll/strapi/drops.rb', line 57

def collections
  @collections ||= StrapiCollectionsDrop.new(@site.strapi_collections)
end