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. The categories_list include is a listing helper for categories.
Usage: Usage:
1) assign the 'categories_list' variable to a valid array of tags. 1) assign the 'categories_list' variable to a valid array of tags.
2) include helpers/categories_list.html. 2) include JB/categories_list
example: example:
<ul> <ul>
{% assign categories_list = site.categories %} {% assign categories_list = site.categories %}
{% include helpers/categories_list.html %} {% include JB/categories_list %}
</ul> </ul>
Notes: Notes:

View file

@ -11,7 +11,7 @@ intend to give liquid examples. It's not an elegant by any means:
Usage: Usage:
1) Define a 'text' variable with the block of liquid code you intend to display. 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: example:
{% capture text %}|.% for tag in tags_list %.| {% capture text %}|.% for tag in tags_list %.|
@ -19,7 +19,7 @@ Usage:
|.% endfor %.| |.% endfor %.|
|.% assign tags_list = null %.|{% endcapture %} |.% 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. As seen here, you must use "|." and ".|" as opening and closing brackets.
-->{% endcomment%} -->{% endcomment%}

View file

@ -2,11 +2,11 @@
The pages_list include is a listing helper. The pages_list include is a listing helper.
Usage: Usage:
1) assign the 'pages_list' variable to a valid array of pages or posts. 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: example:
<ul> <ul>
{% assign pages_list = site.pages %} {% assign pages_list = site.pages %}
{% include helpers/pages_list.html %} {% include JB/pages_list %}
</ul> </ul>
Grouping: (optional): Grouping: (optional):

View file

@ -2,10 +2,10 @@
Collate_posts helper. Collated posts by year and month. Collate_posts helper. Collated posts by year and month.
Usage: Usage:
1) assign the 'posts_collate' variable to a valid array of posts. 1) assign the 'posts_collate' variable to a valid array of posts.
2) include helpers/posts_collate.html. 2) include JB/posts_collate
example: example:
{% assign posts_collate = site.posts %} {% assign posts_collate = site.posts %}
{% include helpers/posts_collate.html %} {% include JB/posts_collate %}
Ordering: Ordering:
Posts are displayed in reverse chronological order. Posts are displayed in reverse chronological order.

View file

@ -2,11 +2,11 @@
The tags_list include is a listing helper for tags. The tags_list include is a listing helper for tags.
Usage: Usage:
1) assign the 'tags_list' variable to a valid array of tags. 1) assign the 'tags_list' variable to a valid array of tags.
2) include helpers/tags_list.html. 2) include JB/tags_list
example: example:
<ul> <ul>
{% assign tags_list = site.tags %} {% assign tags_list = site.tags %}
{% include helpers/tags_list.html %} {% include JB/tags_list %}
</ul> </ul>
Notes: Notes:

View file

@ -3,7 +3,7 @@
<h1 class="emphnext">{{ page.title }}</h1> <h1 class="emphnext">{{ page.title }}</h1>
<ul class="tag_box inline"> <ul class="tag_box inline">
{% assign tags_list = page.tags %} {% assign tags_list = page.tags %}
{% include helpers/tags_list.html %} {% include JB/tags_list %}
</ul> </ul>
{{ content }} {{ content }}

View file

@ -24,12 +24,12 @@
<ul class="list-category list-linear"> <ul class="list-category list-linear">
<li class="list-head">category: </li> <li class="list-head">category: </li>
{% assign categories_list = page.categories %} {% assign categories_list = page.categories %}
{% include helpers/categories_list.html %} {% include JB/categories_list %}
</ul> </ul>
<ul class="list-tag list-linear"> <ul class="list-tag list-linear">
<li class="list-head">tags: </li> <li class="list-head">tags: </li>
{% assign tags_list = page.tags %} {% assign tags_list = page.tags %}
{% include helpers/tags_list.html %} {% include JB/tags_list %}
</ul> </ul>
</div><!-- meta --> </div><!-- meta -->
</div><!-- entry-content --> </div><!-- entry-content -->

View file

@ -33,7 +33,7 @@
<ul class="nav"> <ul class="nav">
{% assign pages_list = site.pages %} {% assign pages_list = site.pages %}
{% assign group = 'navigation' %} {% assign group = 'navigation' %}
{% include helpers/pages_list.html %} {% include JB/pages_list %}
</ul> </ul>
</div> </div>
</div> </div>

View file

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

View file

@ -242,7 +242,7 @@ Render the content variable wherever you want your main content to be injected i
</div> </div>
</body> </body>
...{% endcapture %} ...{% endcapture %}
{% include helpers/liquid_raw.html %} {% include JB/liquid_raw %}
### Sub-Templates ### Sub-Templates

View file

@ -7,4 +7,4 @@ group: navigation
{% include JB/setup %} {% include JB/setup %}
{% assign posts_collate = site.posts %} {% 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"> <ul class="tag_box inline">
{% assign categories_list = site.categories %} {% assign categories_list = site.categories %}
{% include helpers/categories_list.html %} {% include JB/categories_list %}
</ul> </ul>
@ -16,7 +16,7 @@ group: navigation
<h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2> <h2 id="{{ category[0] }}-ref">{{ category[0] | join: "/" }}</h2>
<ul> <ul>
{% assign pages_list = category[1] %} {% assign pages_list = category[1] %}
{% include helpers/pages_list.html %} {% include JB/pages_list %}
</ul> </ul>
{% endfor %} {% endfor %}

View file

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

View file

@ -8,7 +8,7 @@ group: navigation
<ul class="tag_box inline"> <ul class="tag_box inline">
{% assign tags_list = site.tags %} {% assign tags_list = site.tags %}
{% include helpers/tags_list.html %} {% include JB/tags_list %}
</ul> </ul>
@ -16,6 +16,6 @@ group: navigation
<h2 id="{{ tag[0] }}-ref">{{ tag[0] }}</h2> <h2 id="{{ tag[0] }}-ref">{{ tag[0] }}</h2>
<ul> <ul>
{% assign pages_list = tag[1] %} {% assign pages_list = tag[1] %}
{% include helpers/pages_list.html %} {% include JB/pages_list %}
</ul> </ul>
{% endfor %} {% endfor %}