Class: Jekyll::Geolexica::ConceptPage::YAML

Inherits:
Jekyll::Geolexica::ConceptPage show all
Defined in:
lib/jekyll/geolexica/concept_page.rb

Instance Attribute Summary

Attributes inherited from Jekyll::Geolexica::ConceptPage

#concept

Instance Method Summary collapse

Methods inherited from Jekyll::Geolexica::ConceptPage

#initialize, #termid, #type

Constructor Details

This class inherits a constructor from Jekyll::Geolexica::ConceptPage

Instance Method Details

#collection_nameObject



154
155
156
# File 'lib/jekyll/geolexica/concept_page.rb', line 154

def collection_name
  "concepts_yaml"
end

#contentObject



162
163
164
# File 'lib/jekyll/geolexica/concept_page.rb', line 162

def content
  ConceptSerializer.new(concept, site).to_yaml
end

#layoutObject



158
159
160
# File 'lib/jekyll/geolexica/concept_page.rb', line 158

def layout
  nil
end

#page_nameObject



150
151
152
# File 'lib/jekyll/geolexica/concept_page.rb', line 150

def page_name
  "#{termid}.yaml"
end


170
171
172
# File 'lib/jekyll/geolexica/concept_page.rb', line 170

def permalink
  "/api/concepts/#{termid}.yaml"
end

#uses_liquidObject



166
167
168
# File 'lib/jekyll/geolexica/concept_page.rb', line 166

def uses_liquid
  false
end