summaryrefslogtreecommitdiff
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
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
-rw-r--r--Rakefile3
-rw-r--r--_layouts/default.html2
-rw-r--r--_layouts/page.html2
-rw-r--r--_layouts/post.html2
-rw-r--r--_posts/core-samples/2011-12-29-jekyll-introduction.md1
-rw-r--r--archive.html1
-rw-r--r--categories.html1
-rw-r--r--index.md1
-rw-r--r--pages.html1
-rw-r--r--tags.html1
10 files changed, 11 insertions, 4 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
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 %}
diff --git a/index.md b/index.md
index c679f66..dfa0769 100644
--- a/index.md
+++ b/index.md
@@ -2,6 +2,7 @@
layout: page
title: Hello World!
---
+{% include JB/setup %}
Read [Jekyll Quick Start](http://jekyllbootstrap.com/usage/jekyll-quick-start.html)
diff --git a/pages.html b/pages.html
index 4d39d0d..4b298ce 100644
--- a/pages.html
+++ b/pages.html
@@ -4,6 +4,7 @@ title: Pages
header: Pages
group: navigation
---
+{% include JB/setup %}
<h2>All Pages</h2>
<ul>
diff --git a/tags.html b/tags.html
index 76686fc..6a29279 100644
--- a/tags.html
+++ b/tags.html
@@ -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 %}