Class: JekyllOpenSdgPlugins::IndicatorPage

Inherits:
Jekyll::Page
  • Object
show all
Defined in:
lib/jekyll-open-sdg-plugins/create_indicators.rb

Overview

A Page subclass used in the CreateIndicators class.

Instance Method Summary collapse

Constructor Details

#initialize(site, base, dir, inid, language, layout) ⇒ IndicatorPage

Returns a new instance of IndicatorPage.



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/jekyll-open-sdg-plugins/create_indicators.rb', line 32

def initialize(site, base, dir, inid, language, layout)
  @site = site
  @base = base
  @dir  = dir
  @name = 'index.html'

  self.process(@name)
  self.data = {}
  self.data['indicator'] = inid.gsub('-', '.')
  self.data['layout'] = layout
  self.data['language'] = language
end