feat: add a navbar
This commit is contained in:
parent
88b009c1bb
commit
84a720c6d9
5 changed files with 129 additions and 6 deletions
|
|
@ -12,8 +12,7 @@
|
|||
</head>
|
||||
|
||||
<body>
|
||||
<header></header>
|
||||
<nav></nav>
|
||||
{% include "navbar.html" %}
|
||||
<main>
|
||||
{% block content %} {% endblock %}
|
||||
</main>
|
||||
|
|
|
|||
31
templates/navbar.html
Normal file
31
templates/navbar.html
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
<header>
|
||||
<nav>
|
||||
<div class="nav-title">
|
||||
<a class="home-title" href="{{ get_url(path='/') }}">{{ config.title }}</a>
|
||||
</div>
|
||||
<div class="nav-menus">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="/articles">Articles</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/a-propos">À propos</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="nav-widgets">
|
||||
<ul>
|
||||
<li>
|
||||
<div role="button" id="search-button" class="search-button">
|
||||
<span></span>
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<div role="button" id="theme-switch-button" class="theme-switch-button">
|
||||
<span></span>
|
||||
</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
Loading…
Add table
Add a link
Reference in a new issue