Class: Jekyll::Geolexica::ConceptPage::YAML
Instance Attribute Summary
#concept
Instance Method Summary
collapse
#initialize, #termid, #type
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
|