Class: Jekyll::Geolexica::ConceptPage::JSON
- Inherits:
-
Jekyll::Geolexica::ConceptPage
- Object
- PageWithoutAFile
- Jekyll::Geolexica::ConceptPage
- Jekyll::Geolexica::ConceptPage::JSON
- Defined in:
- lib/jekyll/geolexica/concept_page.rb
Instance Attribute Summary
Attributes inherited from Jekyll::Geolexica::ConceptPage
Instance Method Summary collapse
- #collection_name ⇒ Object
- #content ⇒ Object
- #layout ⇒ Object
- #page_name ⇒ Object
- #permalink ⇒ Object
- #uses_liquid ⇒ Object
Methods inherited from Jekyll::Geolexica::ConceptPage
Constructor Details
This class inherits a constructor from Jekyll::Geolexica::ConceptPage
Instance Method Details
#collection_name ⇒ Object
62 63 64 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 62 def collection_name "concepts_json" end |
#content ⇒ Object
70 71 72 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 70 def content ConceptSerializer.new(concept, site).to_json end |
#layout ⇒ Object
66 67 68 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 66 def layout nil end |
#page_name ⇒ Object
58 59 60 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 58 def page_name "#{termid}.json" end |
#permalink ⇒ Object
78 79 80 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 78 def permalink "/api/concepts/#{termid}.json" end |
#uses_liquid ⇒ Object
74 75 76 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 74 def uses_liquid false end |