refactor: Extract a navbar include
This commit is contained in:
parent
26ceec5f20
commit
6246c137b4
2 changed files with 10 additions and 5 deletions
|
@ -1,11 +1,9 @@
|
|||
{% extends 'app' %}
|
||||
|
||||
{% block body %}
|
||||
<nav>
|
||||
{% for link in site.main_menu %}
|
||||
<a href="{{ link.href }}">{{ link.title }}</a>
|
||||
{% endfor %}
|
||||
</nav>
|
||||
{% include 'navbar' with {
|
||||
links: site.main_menu,
|
||||
} only %}
|
||||
|
||||
<h1>{{ page.title }}</h1>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue