Class: Jekyll::Commands::Draft::DraftFileInfo
Instance Attribute Summary
#params
Instance Method Summary
collapse
#file_name, #initialize
Instance Method Details
#content(custom_front_matter = {}) ⇒ Object
49
50
51
52
53
54
|
# File 'lib/jekyll/commands/draft.rb', line 49
def content(custom_front_matter = {})
default_front_matter = front_matter_defaults_for("drafts")
custom_front_matter.merge!(default_front_matter) if default_front_matter.is_a?(Hash)
super(custom_front_matter)
end
|
#path ⇒ Object
45
46
47
|
# File 'lib/jekyll/commands/draft.rb', line 45
def path
"_drafts/#{file_name}"
end
|
#resource_type ⇒ Object
41
42
43
|
# File 'lib/jekyll/commands/draft.rb', line 41
def resource_type
"draft"
end
|