books.kaderli.dev/templates/index.html
Severin Kaderli bb0cbeb645
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
Add link to Git commit
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2023-01-04 00:26:50 +01:00

48 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="./styles.css">
</head>
<body>
<header>
<h1>My book list</h1>
<p>This page lists all books that I've read since I started tracking them.</p>
</header>
<main>
<table>
<thead>
<tr>
<th>Title</th>
<th>Author</th>
<th>Year</th>
<th>Pages</th>
<th>Started</th>
<th>Finished</th>
</tr>
</thead>
<tbody>
{% for book in books %}
<tr>
<td><a href="https://openlibrary.org/isbn/{{book.isbn}}">{{book.title}}</a></td>
<td>{{book.author}}</td>
<td>{{book.year}}</td>
<td>{{book.pages}}</td>
<td>{{book.startDate}}</td>
<td>{{book.endDate}}</td>
</tr>
{% endfor %}
</tbody>
</table>
</main>
<footer>
&copy2022 Severin Kaderli - <a href="https://git.kaderli.dev/severinkaderli/books.kaderli.dev/commit/{{GIT_COMMIT}}">{{GIT_COMMIT}}</a>
</footer>
</body>
</html>