Class: Jekyll::Geolexica::ConceptPage::JSON

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



62
63
64
# File 'lib/jekyll/geolexica/concept_page.rb', line 62

def collection_name
  "concepts_json"
end

#contentObject



70
71
72
# File 'lib/jekyll/geolexica/concept_page.rb', line 70

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

#layoutObject



66
67
68
# File 'lib/jekyll/geolexica/concept_page.rb', line 66

def layout
  nil
end

#page_nameObject



58
59
60
# File 'lib/jekyll/geolexica/concept_page.rb', line 58

def page_name
  "#{termid}.json"
end


78
79
80
# File 'lib/jekyll/geolexica/concept_page.rb', line 78

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

#uses_liquidObject



74
75
76
# File 'lib/jekyll/geolexica/concept_page.rb', line 74

def uses_liquid
  false
end