Module: Jekyll::StructuredContent::SchemaFilters

Defined in:
lib/jekyll/structured_content/schema_filters.rb

Instance Method Summary collapse

Instance Method Details

#schema_type_for(input) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/jekyll/structured_content/schema_filters.rb', line 4

def schema_type_for(input)
  case input.to_s
  when "post"
    "BlogPosting"
  when "page"
    "WebPage"
  when "project"
    "CreativeWork"
  else
    "WebPage"
  end
end