feat: add auto menu

This commit is contained in:
2025-02-07 16:09:32 +01:00
parent c97a015a71
commit 56c67dd564
11 changed files with 60 additions and 15 deletions

View File

@@ -8,6 +8,7 @@
<title>{{ site.subject }} &mdash; {{ title }}</title>
<link rel="preload" href="/assets/css/reset.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" href="/assets/css/theme.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="preload" href="/assets/css/helpers.css" as="style" onload="this.onload=null;this.rel='stylesheet'">
<link rel="stylesheet" href="/assets/css/main.css">
<link rel="stylesheet" href="/assets/css/typography.css">
<link rel="stylesheet" href="/assets/css/header.css">
@@ -15,6 +16,7 @@
<noscript>
<link rel="stylesheet" href="/assets/css/reset.css">
<link rel="stylesheet" href="/assets/css/theme.css">
<link rel="stylesheet" href="/assets/css/helpers.css">
</noscript>
</head>
@@ -22,17 +24,14 @@
<header>
<img src="/assets/images/brand.jpg" alt="Logo du {{ site.subject }}" />
<nav>
<a href="/">Accueil</a>
<a href="/actions">Actions</a>
<a href="/contact">Contact</a>
<a href="/faq">FAQ</a>
<a href="/ressources">Ressources</a>
<a href="/blog">Blog</a>
{{#each collections.nav}}
<a href="{{ this.path }}">{{ this.title }}</a>
{{/each}}
</nav>
<button id="theme-toggle" class="theme-toggle">🌙</button>
</header>
<main>
<h1>{{ title }}</h1>
<h1 class="hidden">{{ title }}</h1>
{{{ contents }}}
{{!-- {{#if postlist}}
<ul>