Skip to content
Browse files

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
  • Loading branch information...
1 parent 7ef7288 commit a1a7efaf71ca45188737a73aca11aa8e05f8502a @plusjade plusjade committed Jan 23, 2012
Showing with 11 additions and 4 deletions.
  1. +2 −1 Rakefile
  2. +1 −1 _layouts/default.html
  3. +1 −1 _layouts/page.html
  4. +1 −1 _layouts/post.html
  5. +1 −0 _posts/core-samples/2011-12-29-jekyll-introduction.md
  6. +1 −0 archive.html
  7. +1 −0 categories.html
  8. +1 −0 index.md
  9. +1 −0 pages.html
  10. +1 −0 tags.html
View
3 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
View
2 _layouts/default.html
@@ -2,5 +2,5 @@
theme :
name : twitter
---
-{% include JB/set_paths %}
+{% include JB/setup %}
{% include themes/twitter/default.html %}
View
2 _layouts/page.html
@@ -1,5 +1,5 @@
---
layout: default
---
-{% include JB/set_paths %}
+{% include JB/setup %}
{% include themes/twitter/page.html %}
View
2 _layouts/post.html
@@ -1,5 +1,5 @@
---
layout: default
---
-{% include JB/set_paths %}
+{% include JB/setup %}
{% include themes/twitter/post.html %}
View
1 _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.
View
1 archive.html
@@ -4,6 +4,7 @@
header : Post Archive
group: navigation
---
+{% include JB/setup %}
{% assign posts_collate = site.posts %}
{% include helpers/posts_collate.html %}
View
1 categories.html
@@ -4,6 +4,7 @@
header: Posts By Category
group: navigation
---
+{% include JB/setup %}
<ul class="tag_box inline">
{% assign categories_list = site.categories %}
View
1 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)
View
1 pages.html
@@ -4,6 +4,7 @@
header: Pages
group: navigation
---
+{% include JB/setup %}
<h2>All Pages</h2>
<ul>
View
1 tags.html
@@ -4,6 +4,7 @@
header: Posts By Tag
group: navigation
---
+{% include JB/setup %}
<ul class="tag_box inline">
{% assign tags_list = site.tags %}

0 comments on commit a1a7efa

Please sign in to comment.
Something went wrong with that request. Please try again.