Skip to content

Commit 315a726

Browse files
blackjidparkr
authored andcommitted
changes default markdown extension to md
1 parent 0251394 commit 315a726

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/jekyll/commands/draft.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

lib/jekyll/commands/post.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"])

0 commit comments

Comments
 (0)