Class: Jekyll::Geolexica::ConceptPage::YAML
- Inherits:
-
Jekyll::Geolexica::ConceptPage
- Object
- PageWithoutAFile
- Jekyll::Geolexica::ConceptPage
- Jekyll::Geolexica::ConceptPage::YAML
- 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
154 155 156 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 154 def collection_name "concepts_yaml" end |
#content ⇒ Object
162 163 164 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 162 def content ConceptSerializer.new(concept, site).to_yaml end |
#layout ⇒ Object
158 159 160 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 158 def layout nil end |
#page_name ⇒ Object
150 151 152 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 150 def page_name "#{termid}.yaml" end |
#permalink ⇒ Object
170 171 172 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 170 def permalink "/api/concepts/#{termid}.yaml" end |
#uses_liquid ⇒ Object
166 167 168 |
# File 'lib/jekyll/geolexica/concept_page.rb', line 166 def uses_liquid false end |