This commit is contained in:
vcncolin
2024-07-02 10:45:45 +02:00
parent 6caf2d4b6b
commit 54c0c8ac69
4 changed files with 28 additions and 1 deletions

View File

@@ -20,7 +20,7 @@ layout: default
<div class="container">
<h1>404</h1>
<img src="assets/404.jpg" alt="Italian Trulli">
<img src="assets/404.jpg" alt="Woops">
<p><strong>Page not found :(</strong></p>
<p>The requested page could not be found.</p>

8
_data/menu.yml Normal file
View File

@@ -0,0 +1,8 @@
- text: Home
url: /
- text: Courses
url: /courses/
- text: Exercices
url: /exercises/
- text: Méthodes
url: /methods/

17
_includes/nav.html Normal file
View File

@@ -0,0 +1,17 @@
{% assign navurl = page.url | remove: 'index.html' %}
<ul>
{% for item in include.nav %}
<li>
<a href="{{ item.url }}">
{% if item.url == navurl %}
<b>{{ item.text }}</b>
{% else %}
{{ item.text }}
{% endif %}
</a>
</li>
{% if item.subitems and navurl contains item.url %}
{% include nav.html nav=item.subitems %}
{% endif %}
{% endfor %}
</ul>

View File

@@ -37,4 +37,6 @@
</body>
{% include nav.html nav=site.data.menu %}
</html>