50 lines
1.1 KiB
HTML
50 lines
1.1 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{weblog-title}{separator}{post-title}</title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="stylesheet" href="/styles.css?v0.0.3">
|
|
{feeds}
|
|
</head>
|
|
<body>
|
|
|
|
<header>
|
|
<h1 class="weblog-title"><a href="{base-path}">{weblog-title}</a></h1>
|
|
{navigation}
|
|
</header>
|
|
|
|
<main class="weblog">
|
|
|
|
<article>
|
|
<aside class="post-info">
|
|
<i class="fa-solid fa-clock"></i> <time class="dt-published" datetime="{date}">{date}</time>
|
|
</aside>
|
|
{body}
|
|
<aside class="post-tags">
|
|
{tags}
|
|
</aside>
|
|
</article>
|
|
|
|
<hr>
|
|
|
|
<h2>Recent posts</h2>
|
|
|
|
{recent-posts}
|
|
|
|
</main>
|
|
|
|
<footer>
|
|
<p>Made with <a href="https://weblog.lol">weblog.lol</a>.</p>
|
|
</footer>
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/luxon/build/global/luxon.min.js" crossorigin="anonymous"></script>
|
|
<script>
|
|
document.querySelectorAll('time:not(.dt-start):not(.dt-end)').forEach(time => {
|
|
const datetime = luxon.DateTime.fromISO(time.getAttribute('datetime'))
|
|
time.innerText = datetime.toRelative()
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|