Skip to content

Commit 9aafe7e

Browse files
author
Matthieu Oger
committed
Change the tutorial layout to use the new metadata
1 parent dd90e14 commit 9aafe7e

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

_layouts/tutorial.html

+14-14
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
</section>
1818

1919
<section class="page-ref">
20-
{% if page.home and page.tutorial %}
21-
Tutorial : <a href="{{ page.home }}">{{ page.tutorial }}</a>
20+
{% if page.tutorial.link and page.tutorial.name %}
21+
Tutorial : <a href="{{ page.tutorial.link }}">{{ page.tutorial.name }}</a>
2222
{% endif %}
2323
</section>
2424

@@ -34,20 +34,20 @@
3434
<!-- start pagination -->
3535
<div class="pager pager--top-separator pager--em">
3636
<section class="pager__older">
37-
{% if page.previous %}
38-
<a href="{{ page.previous }}" title="Previous chapter">← Previous</a>
37+
{% if page.links.previous %}
38+
<a href="{{ page.links.previous }}" title="Previous chapter">← Previous</a>
3939
{% endif %}
4040
</section>
4141

42-
{% if page.home %}
42+
{% if page.links.summary %}
4343
<section class="pager__ref">
44-
<a href="{{ page.home | remove: 'index.html' }}#summary" title="Summary">Summary</a>
44+
<a href="{{ page.links.summary | remove: 'index.html' }}" title="Summary">Summary</a>
4545
</section>
4646
{% endif %}
4747

4848
<section class="pager__newer">
49-
{% if page.next %}
50-
<a href="{{ page.next }}" title="Next chapter">Next →</a>
49+
{% if page.links.next %}
50+
<a href="{{ page.links.next }}" title="Next chapter">Next →</a>
5151
{% endif %}
5252
</section>
5353
</div>
@@ -78,20 +78,20 @@ <h2 class="entry__title">
7878
<!-- start pagination -->
7979
<div class="pager pager--bottom-separator pager--em">
8080
<section class="pager__older">
81-
{% if page.previous %}
82-
<a href="{{ page.previous }}" title="Previous chapter">← Previous</a>
81+
{% if page.links.previous %}
82+
<a href="{{ page.links.previous }}" title="Previous chapter">← Previous</a>
8383
{% endif %}
8484
</section>
8585

86-
{% if page.home %}
86+
{% if page.links.summary %}
8787
<section class="pager__ref">
88-
<a href="{{ page.home | remove: 'index.html' }}#summary" title="Summary">Summary</a>
88+
<a href="{{ page.links.summary | remove: 'index.html' }}" title="Summary">Summary</a>
8989
</section>
9090
{% endif %}
9191

9292
<section class="pager__newer">
93-
{% if page.next %}
94-
<a href="{{ page.next }}" title="Next chapter">Next →</a>
93+
{% if page.links.next %}
94+
<a href="{{ page.links.next }}" title="Next chapter">Next →</a>
9595
{% endif %}
9696
</section>
9797
</div>

0 commit comments

Comments
 (0)