Skip to content

Commit 7f456f0

Browse files
author
Matthieu Oger
committed
Tutorial pager : link to summary
1 parent d0fe127 commit 7f456f0

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

_layouts/tutorial.html

+3-1
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ <h2 class="entry__title">
6161
{% endif %}
6262
</section>
6363

64+
{% if page.home %}
6465
<section class="pager__ref">
65-
<a href="{{ page.url | remove: 'index.html' }}" title="Summary">Summary</a>
66+
<a href="{{ page.home | remove: 'index.html' }}#summary" title="Summary">Summary</a>
6667
</section>
68+
{% endif %}
6769

6870
<section class="pager__newer">
6971
{% if page.next %}

tutorials/2d-game-unity/index.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Get more information about our [licenses on GitHub](https://github.com/pixelnest
2525

2626
The source code is available on our [GitHub repository](https://github.com/pixelnest/2d-game-unity-tutorial).
2727

28-
## Chapters
28+
## Chapters <span id="summary"></span>
2929

3030
[ ![Unity][unity_logo_url] ][unity_logo_url]
3131

0 commit comments

Comments
 (0)