Skip to content

Commit

Permalink
Add dynamic navigation for tutorial pages
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisguida committed Aug 27, 2024
1 parent 1affce4 commit 063d749
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>{{ page.title }}</title>
</head>
<body>
<article>
{{ content }}
</article>

<nav class="pagination">
{% if page.previous %}
<a href="{{ page.previous.url }}" class="btn btn-primary">&laquo; Previous: {{ page.previous.title }}</a>
{% endif %}

{% if page.next %}
<a href="{{ page.next.url }}" class="btn btn-primary">Next: {{ page.next.title }} &raquo;</a>
{% endif %}
</nav>
</body>
</html>

0 comments on commit 063d749

Please sign in to comment.