Update helper calls

Use 'JB/[HELPER]' format
This commit is contained in:
Jade Dominguez 2012-01-23 03:28:28 -08:00
parent 8b7998695b
commit 5c0a7a6dcd
14 changed files with 22 additions and 22 deletions

View file

@ -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:

View file

@ -11,7 +11,7 @@ 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 %.|
@ -19,7 +19,7 @@ Usage:
|.% 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%}

View file

@ -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):

View file

@ -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.

View file

@ -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:

View file

@ -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 }}

View file

@ -24,12 +24,12 @@
<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 -->

View file

@ -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>

View file

@ -33,7 +33,7 @@
<h4>Tags</h4>
<ul class="tag_box">
{% assign tags_list = page.tags %}
{% include helpers/tags_list.html %}
{% include JB/tags_list %}
</ul>
{% endunless %}
</div>

View file

@ -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

View file

@ -7,4 +7,4 @@ group: navigation
{% include JB/setup %}
{% assign posts_collate = site.posts %}
{% include helpers/posts_collate.html %}
{% include JB/posts_collate %}

View file

@ -8,7 +8,7 @@ group: navigation
<ul class="tag_box inline">
{% assign categories_list = site.categories %}
{% include helpers/categories_list.html %}
{% include JB/categories_list %}
</ul>
@ -16,7 +16,7 @@ group: navigation
<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 %}

View file

@ -9,5 +9,5 @@ group: navigation
<h2>All Pages</h2>
<ul>
{% assign pages_list = site.pages %}
{% include helpers/pages_list.html %}
{% include JB/pages_list %}
</ul>

View file

@ -8,7 +8,7 @@ group: navigation
<ul class="tag_box inline">
{% assign tags_list = site.tags %}
{% include helpers/tags_list.html %}
{% include JB/tags_list %}
</ul>
@ -16,6 +16,6 @@ group: navigation
<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 %}