Minify all the HTML before rendering to reduce page weight
[books.alexwlchan.net] / templates / base.html
1 <!doctype html>
2 <html lang="en">
3   <head>
4     <meta charset="utf-8">
5     <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
6
7     <link rel="stylesheet" href="/static/style.css?hash={{ '' | css_hash }}">
8
9     {% block head_content %}{% endblock %}
10
11     <style>
12       aside #shelf_background {
13         background: url({{ [0, 0, 0] | create_shelf_data_uri }});
14         background-size: auto 100%;
15       }
16     </style>
17
18     <title>{% if title %}{{ title | smartypants | safe }} {% endif %}📚 lexie&rsquo;s book tracker</title>
19   </head>
20   <body>
21     {% include "_header.html" %}
22
23     <main>
24       {% block content %}{% endblock %}
25     </main>
26
27     {% include "_footer.html" %}
28   </body>
29 </html>