summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorJade Dominguez <plusjade@gmail.com>2012-01-23 00:52:44 -0800
committerJade Dominguez <plusjade@gmail.com>2012-01-23 00:52:44 -0800
commita1a7efaf71ca45188737a73aca11aa8e05f8502a (patch)
treec3407a5dc0ea776b9a5aa573639eb3575be14938 /Rakefile
parent7ef7288a3338be437ff41c824aa4814631b88add (diff)
Include 'JB/setup' in all posts and pages
This is the only way we can have global access to dynamic liquid variables. Using site configuration is too convulated since switching themes and runing in development vs. production relies on being able to dynamically define variables
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 3978585..6b750d8 100644
--- a/Rakefile
+++ b/Rakefile
@@ -29,6 +29,7 @@ task :new_post, :title do |t, args|
post.puts "category: "
post.puts "tags: []"
post.puts "---"
+ page.puts "{% include JB/setup %}"
end
end # task :new_post
@@ -55,7 +56,7 @@ task :switch_theme, :theme do |t, args|
page.puts "layout: default"
page.puts "---"
end
- page.puts "{% include JB/set_paths %}"
+ page.puts "{% include JB/setup %}"
page.puts "{% include themes/#{args.theme}/#{File.basename(filename)} %}"
end
end