mylloon.fr/templates/blog/index.html
Mylloon 76a79bf192
Some checks are pending
ci/woodpecker/push/publish Pipeline is pending
Add description
2023-04-24 18:41:40 +02:00

47 lines
1.2 KiB
HTML

<!DOCTYPE html>
<html class="index" lang="fr">
<head dir="ltr">
{{>blog/head.html}}
<link rel="stylesheet" href="/css/blog/index.css" />
</head>
<body class="index">
{{#data}}
<h1 id="title">Blog</h1>
{{#no_posts}}
<h2 class="subtitle">Aucun posts</h2>
{{/no_posts}} {{^no_posts}}
<div class="timeline">
<ul>
{{#posts}}
<li>
<span
>{{#date}}
<script>
{
const date = new Date(+"{{year}}", +"{{month}}", +"{{day}}");
document.currentScript.outerHTML = date.toLocaleDateString(
navigator.language || navigator.userLanguage,
{
year: "numeric",
month: "long",
day: "numeric",
}
);
}
</script>
{{/date}}</span
>
<div class="content">
<h3><a href="/blog/{{url}}">{{title}}</a></h3>
{{#desc}}
<p>{{desc}}</p>
{{/desc}}
</div>
</li>
{{/posts}}
</ul>
</div>
{{/no_posts}} {{/data}} {{>footer.html}}
</body>
</html>