45 lines
1.2 KiB
HTML
45 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>
|
|
<p>SHORT DESC</p>
|
|
</div>
|
|
</li>
|
|
{{/posts}}
|
|
</ul>
|
|
</div>
|
|
{{/no_posts}} {{/data}} {{>footer.html}}
|
|
</body>
|
|
</html>
|