Skip to content

Commit

Permalink
Update helper calls
Browse files Browse the repository at this point in the history
Use 'JB/[HELPER]' format
  • Loading branch information
plusjade committed Jan 23, 2012
1 parent 8b79986 commit 5c0a7a6
Show file tree
Hide file tree
Showing 14 changed files with 22 additions and 22 deletions.
4 changes: 2 additions & 2 deletions _includes/JB/categories_list
Expand Up @@ -2,11 +2,11 @@
The categories_list include is a listing helper for categories.
Usage:
1) assign the 'categories_list' variable to a valid array of tags.
2) include helpers/categories_list.html.
2) include JB/categories_list
example:
<ul>
{% assign categories_list = site.categories %}
{% include helpers/categories_list.html %}
{% include JB/categories_list %}
</ul>

Notes:
Expand Down
4 changes: 2 additions & 2 deletions _includes/JB/liquid_raw
Expand Up @@ -11,15 +11,15 @@ intend to give liquid examples. It's not an elegant by any means:

Usage:
1) Define a 'text' variable with the block of liquid code you intend to display.
2) Pass the text variable to include helpers/liquid_raw.html.
2) Pass the text variable to include JB/liquid_raw

example:
{% capture text %}|.% for tag in tags_list %.|
<li><a href="|.{ site.var.tags_path }.||.{ tag[0] }.|-ref">|.{ tag[0] }.| <span>|.{tag[1].size}.|</span></a></li>
|.% endfor %.|

|.% assign tags_list = null %.|{% endcapture %}
{% include helpers/liquid_raw.html %}
{% include JB/liquid_raw %}

As seen here, you must use "|." and ".|" as opening and closing brackets.
-->{% endcomment%}
Expand Down
4 changes: 2 additions & 2 deletions _includes/JB/pages_list
Expand Up @@ -2,11 +2,11 @@
The pages_list include is a listing helper.
Usage:
1) assign the 'pages_list' variable to a valid array of pages or posts.
2) include helpers/pages_list.html.
2) include JB/pages_list
example:
<ul>
{% assign pages_list = site.pages %}
{% include helpers/pages_list.html %}
{% include JB/pages_list %}
</ul>

Grouping: (optional):
Expand Down
4 changes: 2 additions & 2 deletions _includes/JB/posts_collate
Expand Up @@ -2,10 +2,10 @@
Collate_posts helper. Collated posts by year and month.
Usage:
1) assign the 'posts_collate' variable to a valid array of posts.
2) include helpers/posts_collate.html.
2) include JB/posts_collate
example:
{% assign posts_collate = site.posts %}
{% include helpers/posts_collate.html %}
{% include JB/posts_collate %}

Ordering:
Posts are displayed in reverse chronological order.
Expand Down
4 changes: 2 additions & 2 deletions _includes/JB/tags_list
Expand Up @@ -2,11 +2,11 @@
The tags_list include is a listing helper for tags.
Usage:
1) assign the 'tags_list' variable to a valid array of tags.
2) include helpers/tags_list.html.
2) include JB/tags_list
example:
<ul>
{% assign tags_list = site.tags %}
{% include helpers/tags_list.html %}
{% include JB/tags_list %}
</ul>

Notes:
Expand Down
2 changes: 1 addition & 1 deletion _includes/themes/mark-reid/post.html
Expand Up @@ -3,7 +3,7 @@
<h1 class="emphnext">{{ page.title }}</h1>
<ul class="tag_box inline">
{% assign tags_list = page.tags %}
{% include helpers/tags_list.html %}
{% include JB/tags_list %}
</ul>

{{ content }}
Expand Down
4 changes: 2 additions & 2 deletions _includes/themes/the-minimum/post.html
Expand Up @@ -24,12 +24,12 @@ <h1 class="h2 entry-title">{{ page.title }}</h1>
<ul class="list-category list-linear">
<li class="list-head">category: </li>
{% assign categories_list = page.categories %}
{% include helpers/categories_list.html %}
{% include JB/categories_list %}
</ul>
<ul class="list-tag list-linear">
<li class="list-head">tags: </li>
{% assign tags_list = page.tags %}
{% include helpers/tags_list.html %}
{% include JB/tags_list %}
</ul>
</div><!-- meta -->
</div><!-- entry-content -->
Expand Down
2 changes: 1 addition & 1 deletion _includes/themes/twitter/default.html
Expand Up @@ -33,7 +33,7 @@
<ul class="nav">
{% assign pages_list = site.pages %}
{% assign group = 'navigation' %}
{% include helpers/pages_list.html %}
{% include JB/pages_list %}
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion _includes/themes/twitter/post.html
Expand Up @@ -33,7 +33,7 @@ <h4>Published</h4>
<h4>Tags</h4>
<ul class="tag_box">
{% assign tags_list = page.tags %}
{% include helpers/tags_list.html %}
{% include JB/tags_list %}
</ul>
{% endunless %}
</div>
Expand Down
2 changes: 1 addition & 1 deletion _posts/core-samples/2011-12-29-jekyll-introduction.md
Expand Up @@ -242,7 +242,7 @@ Render the content variable wherever you want your main content to be injected i
</div>
</body>
...{% endcapture %}
{% include helpers/liquid_raw.html %}
{% include JB/liquid_raw %}

### Sub-Templates

Expand Down
2 changes: 1 addition & 1 deletion archive.html
Expand Up @@ -7,4 +7,4 @@
{% include JB/setup %}

{% assign posts_collate = site.posts %}
{% include helpers/posts_collate.html %}
{% include JB/posts_collate %}
4 changes: 2 additions & 2 deletions categories.html
Expand Up @@ -8,15 +8,15 @@

<ul class="tag_box inline">
{% assign categories_list = site.categories %}
{% include helpers/categories_list.html %}
{% include JB/categories_list %}
</ul>


{% for category in site.categories %}
<h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
<ul>
{% assign pages_list = category[1] %}
{% include helpers/pages_list.html %}
{% include JB/pages_list %}
</ul>
{% endfor %}

2 changes: 1 addition & 1 deletion pages.html
Expand Up @@ -9,5 +9,5 @@
<h2>All Pages</h2>
<ul>
{% assign pages_list = site.pages %}
{% include helpers/pages_list.html %}
{% include JB/pages_list %}
</ul>
4 changes: 2 additions & 2 deletions tags.html
Expand Up @@ -8,14 +8,14 @@

<ul class="tag_box inline">
{% assign tags_list = site.tags %}
{% include helpers/tags_list.html %}
{% include JB/tags_list %}
</ul>


{% for tag in site.tags %}
<h2 id="{{ tag[0] }}-ref">{{ tag[0] }}</h2>
<ul>
{% assign pages_list = tag[1] %}
{% include helpers/pages_list.html %}
{% include JB/pages_list %}
</ul>
{% endfor %}

0 comments on commit 5c0a7a6

Please sign in to comment.