File tree 14 files changed +22
-22
lines changed
14 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 2
2
The categories_list include is a listing helper for categories.
3
3
Usage:
4
4
1) assign the 'categories_list' variable to a valid array of tags.
5
- 2) include helpers /categories_list.html.
5
+ 2) include JB /categories_list
6
6
example:
7
7
<ul>
8
8
{% assign categories_list = site.categories %}
9
- {% include helpers /categories_list.html %}
9
+ {% include JB /categories_list %}
10
10
</ul>
11
11
12
12
Notes:
Original file line number Diff line number Diff line change @@ -11,15 +11,15 @@ intend to give liquid examples. It's not an elegant by any means:
11
11
12
12
Usage:
13
13
1) Define a 'text' variable with the block of liquid code you intend to display.
14
- 2) Pass the text variable to include helpers /liquid_raw.html.
14
+ 2) Pass the text variable to include JB /liquid_raw
15
15
16
16
example:
17
17
{% capture text %}|.% for tag in tags_list %.|
18
18
<li><a href="|.{ site.var.tags_path }.||.{ tag[0] }.|-ref">|.{ tag[0] }.| <span>|.{tag[1].size}.|</span></a></li>
19
19
|.% endfor %.|
20
20
21
21
|.% assign tags_list = null %.|{% endcapture %}
22
- {% include helpers /liquid_raw.html %}
22
+ {% include JB /liquid_raw %}
23
23
24
24
As seen here, you must use "|." and ".|" as opening and closing brackets.
25
25
-->{% endcomment%}
Original file line number Diff line number Diff line change 2
2
The pages_list include is a listing helper.
3
3
Usage:
4
4
1) assign the 'pages_list' variable to a valid array of pages or posts.
5
- 2) include helpers /pages_list.html.
5
+ 2) include JB /pages_list
6
6
example:
7
7
<ul>
8
8
{% assign pages_list = site.pages %}
9
- {% include helpers /pages_list.html %}
9
+ {% include JB /pages_list %}
10
10
</ul>
11
11
12
12
Grouping: (optional):
Original file line number Diff line number Diff line change 2
2
Collate_posts helper. Collated posts by year and month.
3
3
Usage:
4
4
1) assign the 'posts_collate' variable to a valid array of posts.
5
- 2) include helpers /posts_collate.html.
5
+ 2) include JB /posts_collate
6
6
example:
7
7
{% assign posts_collate = site.posts %}
8
- {% include helpers /posts_collate.html %}
8
+ {% include JB /posts_collate %}
9
9
10
10
Ordering:
11
11
Posts are displayed in reverse chronological order.
Original file line number Diff line number Diff line change 2
2
The tags_list include is a listing helper for tags.
3
3
Usage:
4
4
1) assign the 'tags_list' variable to a valid array of tags.
5
- 2) include helpers /tags_list.html.
5
+ 2) include JB /tags_list
6
6
example:
7
7
<ul>
8
8
{% assign tags_list = site.tags %}
9
- {% include helpers /tags_list.html %}
9
+ {% include JB /tags_list %}
10
10
</ul>
11
11
12
12
Notes:
Original file line number Diff line number Diff line change 3
3
< h1 class ="emphnext "> {{ page.title }}</ h1 >
4
4
< ul class ="tag_box inline ">
5
5
{% assign tags_list = page.tags %}
6
- {% include helpers /tags_list.html %}
6
+ {% include JB /tags_list %}
7
7
</ ul >
8
8
9
9
{{ content }}
Original file line number Diff line number Diff line change @@ -24,12 +24,12 @@ <h1 class="h2 entry-title">{{ page.title }}</h1>
24
24
< ul class ="list-category list-linear ">
25
25
< li class ="list-head "> category: </ li >
26
26
{% assign categories_list = page.categories %}
27
- {% include helpers /categories_list.html %}
27
+ {% include JB /categories_list %}
28
28
</ ul >
29
29
< ul class ="list-tag list-linear ">
30
30
< li class ="list-head "> tags: </ li >
31
31
{% assign tags_list = page.tags %}
32
- {% include helpers /tags_list.html %}
32
+ {% include JB /tags_list %}
33
33
</ ul >
34
34
</ div > <!-- meta -->
35
35
</ div > <!-- entry-content -->
Original file line number Diff line number Diff line change 33
33
< ul class ="nav ">
34
34
{% assign pages_list = site.pages %}
35
35
{% assign group = 'navigation' %}
36
- {% include helpers /pages_list.html %}
36
+ {% include JB /pages_list %}
37
37
</ ul >
38
38
</ div >
39
39
</ div >
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ <h4>Published</h4>
33
33
< h4 > Tags</ h4 >
34
34
< ul class ="tag_box ">
35
35
{% assign tags_list = page.tags %}
36
- {% include helpers /tags_list.html %}
36
+ {% include JB /tags_list %}
37
37
</ ul >
38
38
{% endunless %}
39
39
</ div >
Original file line number Diff line number Diff line change @@ -242,7 +242,7 @@ Render the content variable wherever you want your main content to be injected i
242
242
</div >
243
243
</body >
244
244
...{% endcapture %}
245
- {% include helpers /liquid_raw.html %}
245
+ {% include JB /liquid_raw %}
246
246
247
247
### Sub-Templates
248
248
Original file line number Diff line number Diff line change 7
7
{% include JB/setup %}
8
8
9
9
{% assign posts_collate = site.posts %}
10
- {% include helpers /posts_collate.html %}
10
+ {% include JB /posts_collate %}
Original file line number Diff line number Diff line change 8
8
9
9
< ul class ="tag_box inline ">
10
10
{% assign categories_list = site.categories %}
11
- {% include helpers /categories_list.html %}
11
+ {% include JB /categories_list %}
12
12
</ ul >
13
13
14
14
15
15
{% for category in site.categories %}
16
16
< h2 id ="{{ category[0] }}-ref "> {{ category[0] | join: "/" }}</ h2 >
17
17
< ul >
18
18
{% assign pages_list = category[1] %}
19
- {% include helpers /pages_list.html %}
19
+ {% include JB /pages_list %}
20
20
</ ul >
21
21
{% endfor %}
22
22
Original file line number Diff line number Diff line change 9
9
< h2 > All Pages</ h2 >
10
10
< ul >
11
11
{% assign pages_list = site.pages %}
12
- {% include helpers /pages_list.html %}
12
+ {% include JB /pages_list %}
13
13
</ ul >
Original file line number Diff line number Diff line change 8
8
9
9
< ul class ="tag_box inline ">
10
10
{% assign tags_list = site.tags %}
11
- {% include helpers /tags_list.html %}
11
+ {% include JB /tags_list %}
12
12
</ ul >
13
13
14
14
15
15
{% for tag in site.tags %}
16
16
< h2 id ="{{ tag[0] }}-ref "> {{ tag[0] }}</ h2 >
17
17
< ul >
18
18
{% assign pages_list = tag[1] %}
19
- {% include helpers /pages_list.html %}
19
+ {% include JB /pages_list %}
20
20
</ ul >
21
21
{% endfor %}
You can’t perform that action at this time.
0 commit comments