voyage_velo/templates/base.html

106 lines
2.9 KiB
HTML
Raw Permalink Normal View History

2023-07-20 19:45:55 +02:00
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Un périple à vélo</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="{{ get_url(path="blog.css",
trailing_slash=false) }}" rel="stylesheet">
<link href="{{ get_url(path="custom.css",
trailing_slash=false) }}" rel="stylesheet">
</head>
<body>
<nav class="navbar is-fixed-top" role="navigation" aria-label="main navigation">
<div class="navbar-brand">
<a class="navbar-item" href="{{ config.base_url }}">
<img src="{{ get_url(path="img/lantern.png",
trailing_slash=false) }}" height="28">
</a>
<a role="button" class="navbar-burger" data-target="navMenu" aria-label="menu" aria-expanded="false" id=navbarburger>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
<span aria-hidden="true"></span>
</a>
</div>
<div class="navbar-menu" id="navMenu">
{% for taxonomy in config.taxonomies%}
{% set tax = get_taxonomy(kind=taxonomy.name) %}
<div class="navbar-item is-hoverable">
{% for term in tax.items %}
<a class="navbar-item" href="{{ term.permalink }}">
{{ term.name }}
</a>
{% endfor %}
</div>
{% endfor %}
<div class="navbar-end">
<div class="navbar-item">
<a class="navbar-item icon-text" href="https://framacarte.org/fr/map/anonymous-edit/151005:gg1Ly0MSdmpgSMu22dhGrih5bKR-mw--JqcLBDpWND0">
<span class="icon">
<i class="fas fa-map"></i>
</span>
<span>
La carte
</span>
</a>
</div>
</div>
</div>
</div>
</nav>
<section>
<div>
<div style="margin: 100px"></div>
{% block header %}
{% endblock %}
<div class="container mt-6">
{% block content %}
{% endblock %}
</div>
</div>
</section>
<script>
document.addEventListener('DOMContentLoaded', () => {
// Get all "navbar-burger" elements
const navbarBurgers = document.getElementById('navbarburger');
// Add a click event on each of them
navbarBurgers.addEventListener('click', () => {
const target = navbarBurgers.dataset.target;
const $target = document.getElementById(target);
navbarBurgers.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
</script>
<footer class="footer">
<div class="content has-text-centered">
<p>
Blog réalisé avec <a href="https://getzola.org">Zola</a> et
<a href="https://bulma.io">Bulma</a>. Le code est accessible <a href="https://yuno.oiseauroch.fr/gitea"> ici</a>.
Sauf mention contraire, le contenu de ce site est sous license <a href="http://creativecommons.org/licenses/by-sa/4.0/">CC BY SA 4.0</a>.
</p>
</div>
</footer>
</body>
</html>