class Jekyll::ResourceListingPage

Public Class Methods

new(site, base_dir, url, layout, header, resources) click to toggle source
# File lib/jekyll-theme-isotc211-helpers/resource_listing.rb, line 15
def initialize(site, base_dir, url, layout, header, resources)
  @site = site
  @base = base_dir
  @dir = url
  @name = "index.html"

  self.process(@name)

  self.data = {
    'layout' => layout || 'resource-index',
    'title' => header,
    'resources' => resources,
  }
end