little-hesinde/rusty-library/templates/base.html

38 lines
1.4 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="color-scheme" content="light dark" />
<link rel="stylesheet" href="/static/pico.min.css" />
<link rel="stylesheet" href="/static/style.css" />
<title>Rusty Library</title>
</head>
<body>
<header class="container fixed">
<nav>
<ul>
<li>{% block title %}<strong>{{ title }}</strong>{% endblock title %}</li>
</ul>
<ul>
<li {% if nav == "recent" %}class = "nav-active"{% endif %}><a href="/">Recent</a></li>
<li {% if nav == "authors" %}class = "nav-active"{% endif %}><a href="/authors">Authors</a></li>
<li {% if nav == "books" %}class = "nav-active"{% endif %}><a href="/books">Books</a></li>
<li {% if nav == "series" %}class = "nav-active"{% endif %}><a href="/series">Series</a></li>
</ul>
</nav>
</header>
<main class="container">
{% block content %}{% endblock content %}
</main>
<footer class="container">
<hr />
<small>
From <a href="https://code.vanwa.ch/shu/rusty-library">https://code.vanwa.ch</a>
under <a href="https://www.gnu.org/licenses/agpl-3.0.txt">AGPL-3</a>
- <a href="/opds">opds feed</a>
</small>
</footer>
</body>
</html>