Skip to content

Commit

Permalink
add menu
Browse files Browse the repository at this point in the history
  • Loading branch information
jgroenen committed Nov 21, 2024
1 parent 0767eaa commit 6f01e89
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions _data/menu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- title: home
url: /
- title: over mij
url: /over-mij/
5 changes: 5 additions & 0 deletions _includes/menu.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<ul>
{% for item in site.data.menu %}
<li><a href="{{ item.url }}">{{ item.title }}</a></li>
{% endfor %}
</ul>
3 changes: 3 additions & 0 deletions _layouts/default.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<html>
<body>
<nav>
{% include menu.html %}
</nav>
{{content}}
{{page.title}}
</body>
Expand Down

0 comments on commit 6f01e89

Please sign in to comment.