From a1a7efaf71ca45188737a73aca11aa8e05f8502a Mon Sep 17 00:00:00 2001 From: Jade Dominguez Date: Mon, 23 Jan 2012 00:52:44 -0800 Subject: 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 --- Rakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Rakefile') 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 -- cgit v1.2.3