diff options
author | Jade Dominguez <plusjade@gmail.com> | 2012-01-23 00:52:44 -0800 |
---|---|---|
committer | Jade Dominguez <plusjade@gmail.com> | 2012-01-23 00:52:44 -0800 |
commit | a1a7efaf71ca45188737a73aca11aa8e05f8502a (patch) | |
tree | c3407a5dc0ea776b9a5aa573639eb3575be14938 /Rakefile | |
parent | 7ef7288a3338be437ff41c824aa4814631b88add (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-- | Rakefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |