lib/octopress/page.rb in octopress-3.0.0.rc.27 vs lib/octopress/page.rb in octopress-3.0.0.rc.28
- old
+ new
@@ -126,10 +126,10 @@
# Handle case where user passes the full path
#
file = @options['template'] || default_template
if file
- file.sub(/^_templates\//, '')
+ file.sub!(/^_templates\//, '')
file = File.join(site.source, '_templates', file) if file
if File.exist? file
parse_template File.open(file).read
elsif @options['template']
abort "No #{@options['type']} template found at #{file}"