Created
October 20, 2011 05:25
-
-
Save cola-zero/1300490 to your computer and use it in GitHub Desktop.
diff of Rakefile in my Octopress.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/Rakefile b/Rakefile | |
index 529ae88..7d7f6d8 100644 | |
--- a/Rakefile | |
+++ b/Rakefile | |
@@ -15,14 +15,14 @@ deploy_branch = "gh-pages" | |
## -- Misc Configs -- ## | |
public_dir = "public" # compiled site directory | |
-source_dir = "org" # source file directory | |
+source_dir = "source" # source file directory | |
blog_index_dir = 'source' # directory for your blog's index page (if you put your index in source/blog/index.html, set this to 'source/blog') | |
deploy_dir = "_deploy" # deploy directory (for Github pages deployment) | |
stash_dir = "_stash" # directory to stash posts for speedy generation | |
posts_dir = "_posts" # directory for blog files | |
themes_dir = ".themes" # directory for blog files | |
-new_post_ext = "org" # default new post file extension when using the new_post task | |
-new_page_ext = "org" # default new page file extension when using the new_page task | |
+new_post_ext = "markdown" # default new post file extension when using the new_post task | |
+new_page_ext = "markdown" # default new page file extension when using the new_page task | |
server_port = "4000" # port for preview server eg. localhost:4000 | |
@@ -100,7 +100,6 @@ task :new_post, :title do |t, args| | |
end | |
puts "Creating new post: #{filename}" | |
open(filename, 'w') do |post| | |
- post.puts "#+BEGIN_HTML" | |
post.puts "---" | |
post.puts "layout: post" | |
post.puts "title: \"#{title.gsub(/&/,'&')}\"" | |
@@ -108,7 +107,6 @@ task :new_post, :title do |t, args| | |
post.puts "comments: true" | |
post.puts "categories: " | |
post.puts "---" | |
- post.puts "#+END_HTML" | |
end | |
end | |
@@ -130,7 +128,6 @@ task :new_page, :filename do |t, args| | |
end | |
puts "Creating new page: #{file}" | |
open(file, 'w') do |page| | |
- page.puts "#+BEGIN_HTML" | |
page.puts "---" | |
page.puts "layout: page" | |
page.puts "title: \"#{$2.gsub(/[-_]/, ' ')}\"" | |
@@ -139,7 +136,6 @@ task :new_page, :filename do |t, args| | |
page.puts "sharing: true" | |
page.puts "footer: true" | |
page.puts "---" | |
- page.puts "#+END_HTML" | |
end | |
else | |
puts "Syntax error: #{args.filename} contains unsupported characters" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment