41 lines
1.0 KiB
HTML
41 lines
1.0 KiB
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="fr">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>My EBook</title>
|
||
|
<!-- Add any CSS stylesheets or external resources here -->
|
||
|
</head>
|
||
|
<body>
|
||
|
<header>
|
||
|
<h1>Welcome to My EBook</h1>
|
||
|
<style type="text/css">
|
||
|
body{
|
||
|
width: 40rem;
|
||
|
padding: 4rem;
|
||
|
}
|
||
|
|
||
|
.article{
|
||
|
margin-bottom: 2rem;
|
||
|
}
|
||
|
</style>
|
||
|
</header>
|
||
|
<main>
|
||
|
{% for article in articles %}
|
||
|
<section class="article">
|
||
|
<h2><a href="#{{ loop.index }}" id="{{ loop.index }}">{{ article.title }}</a></h2>
|
||
|
<time datetime="{{ article.created | date }}">
|
||
|
Published {{ article.created | date }}
|
||
|
</time>
|
||
|
<div dangerouslySetInnerHTML={{ article.introtext|safe }}>
|
||
|
{{ article.introtext }}
|
||
|
</div>
|
||
|
</section>
|
||
|
{% else %}
|
||
|
<p>No articles found.</p>
|
||
|
{% endfor %}
|
||
|
</main>
|
||
|
<!-- Add any JavaScript scripts or external resources here -->
|
||
|
</body>
|
||
|
</html>
|