class Jekyll::Geolexica::ConceptPage

Attributes

concept[R]

Public Class Methods

new(site, concept) click to toggle source
Calls superclass method
# File lib/jekyll/geolexica/concept_page.rb, line 9
def initialize(site, concept)
  @concept = concept
  @data = default_data.merge(concept.data)

  super(site, site.source, "concepts", page_name)
end

Public Instance Methods

termid() click to toggle source
# File lib/jekyll/geolexica/concept_page.rb, line 16
def termid
  concept.termid
end
type() click to toggle source
# File lib/jekyll/geolexica/concept_page.rb, line 20
def type
  self.collection_name.to_sym
end

Protected Instance Methods

default_data() click to toggle source
# File lib/jekyll/geolexica/concept_page.rb, line 26
def default_data
  {
    "layout" => layout,
    "render_with_liquid" => uses_liquid,
    "permalink" => permalink,
    "representations" => concept.pages,
  }
end