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 for the indicators.

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of IndicatorPage.



146
147
148
149
150
151
152
153
154
155
156
157
# File 'lib/jekyll-open-sdg-plugins/create_indicators.rb', line 146

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_number'] = inid.gsub('-', '.')
  self.data['layout'] = layout
  self.data['language'] = language
end