Skip to content

Commit 7b307cd

Browse files
author
Mike Moore
committed
Remove .html extension from links
1 parent 5fc87b7 commit 7b307cd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

chapters/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,15 @@ <h2>Working with Strings</h2>
77
{% for page in site.pages %}
88
<ul>
99
{% if page.url contains '/chapters/strings/' %}
10-
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
10+
<li><a href="{{ page.url | replace:'.html','' }}">{{ page.title }}</a></li>
1111
{% endif %}
1212
</ul>
1313
{% endfor %}
1414
<h2>Working with Arrays</h2>
1515
{% for page in site.pages %}
1616
<ul>
1717
{% if page.url contains '/chapters/arrays/' %}
18-
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
18+
<li><a href="{{ page.url | replace:'.html','' }}">{{ page.title }}</a></li>
1919
{% endif %}
2020
</ul>
2121
{% endfor %}

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ <h2>Working with Strings</h2>
1818
{% for page in site.pages %}
1919
<ul>
2020
{% if page.url contains '/chapters/strings/' %}
21-
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
21+
<li><a href="{{ page.url | replace:'.html','' }}">{{ page.title }}</a></li>
2222
{% endif %}
2323
</ul>
2424
{% endfor %}
2525
<h2>Working with Arrays</h2>
2626
{% for page in site.pages %}
2727
<ul>
2828
{% if page.url contains '/chapters/arrays/' %}
29-
<li><a href="{{ page.url }}">{{ page.title }}</a></li>
29+
<li><a href="{{ page.url | replace:'.html','' }}">{{ page.title }}</a></li>
3030
{% endif %}
3131
</ul>
3232
{% endfor %}

0 commit comments

Comments
 (0)