lib/octopress/draft.rb in octopress-3.0.0.rc.12 vs lib/octopress/draft.rb in octopress-3.0.0.rc.13
- old
+ new
@@ -93,13 +93,18 @@
content.sub(/(title:.+$)/i, '\1'+"\ndate: #{@options['date']}")
else
read
end
end
+
+ def default_template
+ 'draft'
+ end
# Draft template defaults
#
def default_content
+
if @options['date']
front_matter %w{layout title date}
else
front_matter %w{layout title}
end