blog/templates/base.html

125 lines
3.5 KiB
HTML
Raw Normal View History

2023-03-31 21:59:07 +02:00
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="utf-8">
<title>Blog à tout dire</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">
2023-04-08 19:43:40 +02:00
{% for taxonomy in config.taxonomies%}
<div class="navbar-item has-dropdown is-hoverable">
2023-03-31 21:59:07 +02:00
<a class="navbar-link">
2023-04-08 19:43:40 +02:00
{{ taxonomy.name }}
2023-03-31 21:59:07 +02:00
</a>
2023-04-08 19:43:40 +02:00
{% set tax = get_taxonomy(kind=taxonomy.name) %}
2023-03-31 21:59:07 +02:00
<div class="navbar-dropdown">
2023-04-08 19:43:40 +02:00
{% for term in tax.items %}
<a class="navbar-item" href="{{ term.permalink }}">
{{ term.name }}
2023-03-31 21:59:07 +02:00
</a>
2023-04-08 19:43:40 +02:00
{% endfor %}
2023-03-31 21:59:07 +02:00
</div>
2023-04-08 19:43:40 +02:00
</div>
{% endfor %}
2023-03-31 21:59:07 +02:00
<div class="navbar-end">
<div class="navbar-item">
<a class="navbar-item" href="{{ get_url(path="apropos",
trailing_slash=false) }}">
À propos
</a>
<div class="navbar-item has-dropdown is-hoverable ">
<a class="navbar-link">
Sites amis
</a>
<div class="navbar-dropdown">
2023-05-06 20:30:36 +02:00
{% set friend_sites = get_section(path="blog_amis/_index.md") %}
{% for page in friend_sites.pages %}
<a class="navbar-item" href="{{ page.extra.url }}">
{{ page.extra.short_title }}
2023-03-31 21:59:07 +02:00
</a>
2023-05-06 20:30:36 +02:00
{% endfor %}
2023-03-31 21:59:07 +02:00
</div>
</div>
<a class="navbar-item" href="https://yuno.oiseauroch.fr/gitea">
<img class="image is-24x24" src="{{ get_url(path="img/Gitea_Logo.svg",
trailing_slash=false) }}">
</a>
</div>
</div>
</div>
</div>
</nav>
<section>
<div>
<div style="margin: 100px"></div>
2023-05-06 20:30:36 +02:00
{% block header %}
{% endblock %}
2023-03-31 21:59:07 +02:00
<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>