mylloon.fr/templates/blog/index.html
Mylloon b9194dd0fa
All checks were successful
ci/woodpecker/push/publish Pipeline was successful
use new rss endpoint: blog.rss
2024-06-02 19:35:44 +02:00

40 lines
907 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>
{{#about}} {{&content}} {{/about}}
<a id="rss" href="/blog/blog.rss">Lien vers le flux RSS</a>
{{#no_posts}}
<h2>Aucun posts</h2>
{{/no_posts}} {{^no_posts}}
<ul>
{{#posts}}
<li role="button" onclick="window.open('/blog/p/{{url}}', '_parent');">
{{>blog/date.html}}
<h2><a href="/blog/p/{{url}} ">{{title}}</a></h2>
{{#desc}}
<p>{{desc}}</p>
{{/desc}}
</li>
{{/posts}}
</ul>
{{/no_posts}} {{/data}}
</main>
</body>
</html>