create partials for footer and navigation bar

This commit is contained in:
Vincent Finance 2022-03-27 22:47:15 +02:00
parent 31a3e94de4
commit 9bc0fbb191
6 changed files with 26 additions and 44 deletions

View File

@ -7,22 +7,13 @@
<title>{{ .Title }} {{ site.Title }}</title>
</head>
<body>
<nav>
<span id="title"><a title="Accueil du blog" href="/">{{ site.Title }}</a></span>
<a title="Lien vers la page À propos de" href="/posts/">Posts</a>
<a title="Lien vers les archives du blog" href="/about/">À propos</a>
<a title="Lien vers ma page de contact" href="https://forum.openbsd.fr.eu.org/">Forum</a>
<a class="rss" title="Flux RSS du blog" href="/liste/">Mailing-list</a>
<a class="rss" title="Flux Atom du blog" href="https://wiki.openbsd.fr.eu.org/doku.php">Wiki</a>
</nav>
{{ partial "navigation.html" . | safeHTML }}
<main>
<article>
<h1>{{ .Title }}</h1>
{{ .Content | safeHTML }}
</article>
</main>
<footer>
<p>Généré avec <a href="https://sr.ht/~adnano/kiln">kiln</a> - Utilise la fonte <a href="https://software.sil.org/andika/">Andika</a> - Hébergé chez <a href="https://obsda.ms/">obsda.ms</a></p>
</footer>
{{ partial "footer.html" . | safeHTML }}
</body>
</html>

View File

@ -7,22 +7,13 @@
<title>{{ .Title }} {{ site.Title }}</title>
</head>
<body>
<nav>
<span id="title"><a title="Accueil du blog" href="/">{{ site.Title }}</a></span>
<a title="Lien vers la page À propos de" href="/posts/">Posts</a>
<a title="Lien vers les archives du blog" href="/about/">À propos</a>
<a title="Lien vers ma page de contact" href="https://forum.openbsd.fr.eu.org/">Forum</a>
<a class="rss" title="Flux RSS du blog" href="/liste/">Mailing-list</a>
<a class="rss" title="Flux Atom du blog" href="https://wiki.openbsd.fr.eu.org/doku.php">Wiki</a>
</nav>
{{ partial "navigation.html" . | safeHTML }}
<main>
<article>
<h1>{{ .Title }}</h1>
{{ .Content | safeHTML }}
</article>
</main>
<footer>
<p>Généré avec <a href="https://sr.ht/~adnano/kiln">kiln</a> - Utilise la fonte <a href="https://software.sil.org/andika/">Andika</a> - Hébergé chez <a href="https://obsda.ms/">obsda.ms</a></p>
</footer>
{{ partial "footer.html" . | safeHTML }}
</body>
</html>

View File

@ -0,0 +1,3 @@
<footer>
<p>Généré avec <a href="https://sr.ht/~adnano/kiln">kiln</a> - Utilise la fonte <a href="https://software.sil.org/andika/">Andika</a> - Hébergé chez <a href="https://obsda.ms/">obsda.ms</a></p>
</footer>

View File

@ -0,0 +1,8 @@
<nav>
<span id="title"><a title="Accueil du blog" href="/">{{ site.Title }}</a></span>
<a title="Lien vers la page À propos de" href="/posts/">Posts</a>
<a title="Lien vers les archives du blog" href="/about/">À propos</a>
<a title="Lien vers ma page de contact" href="https://forum.openbsd.fr.eu.org/">Forum</a>
<a class="rss" title="Flux RSS du blog" href="/liste/">Mailing-list</a>
<a class="rss" title="Flux Atom du blog" href="https://wiki.openbsd.fr.eu.org/doku.php">Wiki</a>
</nav>

View File

@ -7,22 +7,20 @@
<title>{{ .Title }} {{ site.Title }}</title>
</head>
<body>
<nav>
<span id="title"><a title="Accueil du blog" href="/">{{ site.Title }}</a></span>
<a title="Lien vers la page À propos de" href="/posts/">Posts</a>
<a title="Lien vers les archives du blog" href="/about/">À propos</a>
<a title="Lien vers ma page de contact" href="https://forum.openbsd.fr.eu.org/">Forum</a>
<a class="rss" title="Flux RSS du blog" href="/liste/">Mailing-list</a>
<a class="rss" title="Flux Atom du blog" href="https://wiki.openbsd.fr.eu.org/doku.php">Wiki</a>
</nav>
{{ partial "navigation.html" . | safeHTML }}
<main>
<article>
<h1>{{ .Title }}</h1>
{{ .Content | safeHTML }}
<div aria-label="Table of contents">
<ul>
{{- range .Pages }}
<li><a href="{{ .Path }}">{{ .Title }}</a></li>
{{- end }}
</ul>
</div>
</article>
</main>
<footer>
<p>Généré avec <a href="https://sr.ht/~adnano/kiln">kiln</a> - Utilise la fonte <a href="https://software.sil.org/andika/">Andika</a></p>
</footer>
{{ partial "footer.html" . | safeHTML }}
</body>
</html>

View File

@ -7,14 +7,7 @@
<title>{{ .Title }} {{ site.Title }}</title>
</head>
<body>
<nav>
<span id="title"><a title="Accueil du blog" href="/">{{ site.Title }}</a></span>
<a title="Lien vers la page À propos de" href="/posts/">Posts</a>
<a title="Lien vers les archives du blog" href="/about/">À propos</a>
<a title="Lien vers ma page de contact" href="https://forum.openbsd.fr.eu.org/">Forum</a>
<a class="rss" title="Flux RSS du blog" href="/liste/">Mailing-list</a>
<a class="rss" title="Flux Atom du blog" href="https://wiki.openbsd.fr.eu.org/doku.php">Wiki</a>
</nav>
{{ partial "navigation.html" . | safeHTML }}
<main>
<article>
<h1>{{ .Title }}</h1>
@ -30,8 +23,6 @@
</nav>
</article>
</main>
<footer>
<p>Généré avec <a href="https://sr.ht/~adnano/kiln">kiln</a> - Utilise la fonte <a href="https://software.sil.org/andika/">Andika</a></p>
</footer>
{{ partial "footer.html" . | safeHTML }}
</body>
</html>