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 | |
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
-rw-r--r-- | Rakefile | 3 | ||||
-rw-r--r-- | _layouts/default.html | 2 | ||||
-rw-r--r-- | _layouts/page.html | 2 | ||||
-rw-r--r-- | _layouts/post.html | 2 | ||||
-rw-r--r-- | _posts/core-samples/2011-12-29-jekyll-introduction.md | 1 | ||||
-rw-r--r-- | archive.html | 1 | ||||
-rw-r--r-- | categories.html | 1 | ||||
-rw-r--r-- | index.md | 1 | ||||
-rw-r--r-- | pages.html | 1 | ||||
-rw-r--r-- | tags.html | 1 |
10 files changed, 11 insertions, 4 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 diff --git a/_layouts/default.html b/_layouts/default.html index 32e9b83..2d9be07 100644 --- a/_layouts/default.html +++ b/_layouts/default.html @@ -2,5 +2,5 @@ theme : name : twitter --- -{% include JB/set_paths %} +{% include JB/setup %} {% include themes/twitter/default.html %} diff --git a/_layouts/page.html b/_layouts/page.html index c1bef1b..a4a2d0b 100644 --- a/_layouts/page.html +++ b/_layouts/page.html @@ -1,5 +1,5 @@ --- layout: default --- -{% include JB/set_paths %} +{% include JB/setup %} {% include themes/twitter/page.html %} diff --git a/_layouts/post.html b/_layouts/post.html index d77763a..9971d7c 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -1,5 +1,5 @@ --- layout: default --- -{% include JB/set_paths %} +{% include JB/setup %} {% include themes/twitter/post.html %} diff --git a/_posts/core-samples/2011-12-29-jekyll-introduction.md b/_posts/core-samples/2011-12-29-jekyll-introduction.md index 013c5f0..0519fb3 100644 --- a/_posts/core-samples/2011-12-29-jekyll-introduction.md +++ b/_posts/core-samples/2011-12-29-jekyll-introduction.md @@ -3,6 +3,7 @@ layout: post category : lessons tags : [intro, beginner, jekyll, tutorial] --- +{% include JB/setup %} This Jekyll introduction will outline specifically what Jekyll is and why you would want to use it. Directly following the intro we'll learn exactly _how_ Jekyll does what it does. diff --git a/archive.html b/archive.html index 625253f..683459c 100644 --- a/archive.html +++ b/archive.html @@ -4,6 +4,7 @@ title : Archive header : Post Archive group: navigation --- +{% include JB/setup %} {% assign posts_collate = site.posts %} {% include helpers/posts_collate.html %}
\ No newline at end of file diff --git a/categories.html b/categories.html index a5ed9f8..b95b0ae 100644 --- a/categories.html +++ b/categories.html @@ -4,6 +4,7 @@ title: Categories header: Posts By Category group: navigation --- +{% include JB/setup %} <ul class="tag_box inline"> {% assign categories_list = site.categories %} @@ -2,6 +2,7 @@ layout: page title: Hello World! --- +{% include JB/setup %} Read [Jekyll Quick Start](http://jekyllbootstrap.com/usage/jekyll-quick-start.html) @@ -4,6 +4,7 @@ title: Pages header: Pages group: navigation --- +{% include JB/setup %} <h2>All Pages</h2> <ul> @@ -4,6 +4,7 @@ title: Tags header: Posts By Tag group: navigation --- +{% include JB/setup %} <ul class="tag_box inline"> {% assign tags_list = site.tags %} |