Skip to content

Commit d076d3b

Browse files
author
David Brady
committed
Fixed templating error in the chapter index
1 parent a4bdd92 commit d076d3b

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

chapters/index.textile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ title: Cookbook
66
h2. Objects
77

88
{% for page in site.pages %}
9-
{% if page.url contains '/chapters/objects' %}
9+
{% if page.url contains '/chapters/objects/' %}
1010
* <a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a>
1111
{% endif %}
1212
{% endfor %}
@@ -32,7 +32,7 @@ h2. Working with Arrays
3232
h2. Dates and Times
3333

3434
{% for page in site.pages %}
35-
{% if page.url contains '/chapters/dates-and-times %}
35+
{% if page.url contains '/chapters/dates-and-times/' %}
3636
* <a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a>
3737
{% endif %}
3838
{% endfor %}
@@ -41,7 +41,7 @@ h2. Dates and Times
4141
h2. Math
4242

4343
{% for page in site.pages %}
44-
{% if page.url contains '/chapters/math' %}
44+
{% if page.url contains '/chapters/math/' %}
4545
* <a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a>
4646
{% endif %}
4747
{% endfor %}
@@ -50,7 +50,7 @@ h2. Math
5050
h2. Functions
5151

5252
{% for page in site.pages %}
53-
{% if page.url contains '/chapters/functions' %}
53+
{% if page.url contains '/chapters/functions/' %}
5454
* <a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a>
5555
{% endif %}
5656
{% endfor %}
@@ -59,7 +59,7 @@ h2. Functions
5959
h2. jQuery
6060

6161
{% for page in site.pages %}
62-
{% if page.url contains '/chapters/jquery' %}
62+
{% if page.url contains '/chapters/jquery/' %}
6363
* <a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a>
6464
{% endif %}
6565
{% endfor %}
@@ -68,7 +68,7 @@ h2. jQuery
6868
h2. Regular Expressions
6969

7070
{% for page in site.pages %}
71-
{% if page.url contains '/chapters/regular-expressions' %}
71+
{% if page.url contains '/chapters/regular-expressions/' %}
7272
* <a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a>
7373
{% endif %}
7474
{% endfor %}
@@ -77,7 +77,7 @@ h2. Regular Expressions
7777
h2. AJAX
7878

7979
{% for page in site.pages %}
80-
{% if page.url contains '/chapters/ajax' %}
80+
{% if page.url contains '/chapters/ajax/' %}
8181
* <a href="{{ page.url | replace: '.html', '' }}">{{ page.title }}</a>
8282
{% endif %}
8383
{% endfor %}

0 commit comments

Comments
 (0)