mylloon.fr/templates/blog/index.html

48 lines
1.2 KiB
HTML
Raw Normal View History

<!DOCTYPE html>
<html class="index" lang="fr">
2023-04-24 17:22:12 +02:00
<head dir="ltr">
2023-04-24 18:01:38 +02:00
{{>blog/head.html}}
<link rel="stylesheet" href="/css/blog/index.css" />
2023-04-24 17:22:12 +02:00
</head>
<body class="index">
2023-04-19 20:27:40 +02:00
{{#data}}
2023-04-24 18:01:38 +02:00
2023-04-24 19:11:00 +02:00
<h1>Blog</h1>
2023-04-24 18:01:38 +02:00
{{#no_posts}}
<h2 class="subtitle">Aucun posts</h2>
{{/no_posts}} {{^no_posts}}
<div class="timeline">
<ul>
{{#posts}}
<li>
2023-04-25 03:02:54 +02:00
<span>
{{#date}}
2023-04-24 18:36:01 +02:00
<script>
{
const date = new Date(+"{{year}}", +"{{month}}", +"{{day}}");
document.currentScript.outerHTML = date.toLocaleDateString(
navigator.language || navigator.userLanguage,
{
year: "numeric",
month: "long",
day: "numeric",
}
);
}
</script>
2023-04-25 03:02:54 +02:00
{{/date}}
</span>
2023-04-24 18:01:38 +02:00
<div class="content">
2023-04-25 03:02:54 +02:00
<h2><a href="/blog/{{url}}">{{title}}</a></h2>
2023-04-24 18:41:40 +02:00
{{#desc}}
<p>{{desc}}</p>
{{/desc}}
2023-04-24 18:01:38 +02:00
</div>
</li>
{{/posts}}
</ul>
2023-04-19 20:27:40 +02:00
</div>
2023-04-24 18:01:38 +02:00
{{/no_posts}} {{/data}} {{>footer.html}}
</body>
</html>