mylloon.fr/templates/blog/index.html
2023-10-15 18:04:18 +02:00

40 lines
879 B
HTML

<!DOCTYPE html>
<html lang="fr">
<head dir="ltr">
{{>head.html}}
<link
rel="alternate"
type="application/rss+xml"
title="RSS"
href="/blog/rss"
/>
<link rel="stylesheet" href="/css/blog/index.css" />
</head>
<body>
<header>{{>navbar.html}}</header>
<main>
{{#data}}
<h1>Blog</h1>
<p>Blog perso, je dis peut-être n'importe quoi 🫶</p>
<a id="rss" href="/blog/rss">Lien vers le flux RSS</a>
{{#no_posts}}
<h2>Aucun posts</h2>
{{/no_posts}} {{^no_posts}}
<ul>
{{#posts}}
<li onclick="window.open('/blog/p/{{url}}', '_parent');">
{{>blog/date.html}}
<h2>{{title}}</h2>
{{#desc}}
<p>{{desc}}</p>
{{/desc}}
</li>
{{/posts}}
</ul>
{{/no_posts}} {{/data}}
</main>
</body>
</html>