File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ def self.init_with_program(prog)
1919 def self . process ( args = [ ] , options = { } )
2020 raise ArgumentError . new ( 'You must specify a name.' ) if args . empty?
2121
22- type = options [ "type" ] || "markdown "
22+ type = options [ "type" ] || "md "
2323 layout = options [ "layout" ] || "post"
2424
2525 title = args . shift
@@ -38,7 +38,7 @@ def self.process(args = [], options = {})
3838 # Internal: Gets the filename of the draft to be created
3939 #
4040 # Returns the filename of the draft, as a String
41- def self . draft_name ( name , ext = 'markdown ' )
41+ def self . draft_name ( name , ext = 'md ' )
4242 "_drafts/#{ name } .#{ ext } "
4343 end
4444
Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ def self.init_with_program(prog)
2020 def self . process ( args = [ ] , options = { } )
2121 raise ArgumentError . new ( 'You must specify a name.' ) if args . empty?
2222
23- type = options [ "type" ] . nil? ? "markdown " : options [ "type" ]
23+ type = options [ "type" ] . nil? ? "md " : options [ "type" ]
2424 layout = options [ "layout" ] . nil? ? "post" : options [ "layout" ]
2525
2626 date = options [ "date" ] . nil? ? Time . now : DateTime . parse ( options [ "date" ] )
You can’t perform that action at this time.
0 commit comments