summaryrefslogtreecommitdiff
path: root/assets/chapter.html.jinja
blob: 972ac75fbf402ba95ebb406bc7d1cb51d75d9c1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{{ site }} - {{ series_name }} - {{ chapter_name }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="preload" href="{{ base }}lexend.woff2" as="font" type="font/woff2" crossorigin>
    <link rel="stylesheet" href="{{ base }}{{ style }}">
    <link rel="icon" href="{{ base }}favicon.ico" sizes="any">
</head>
<body>

    <a class="back" href="{{ base }}{{ series_loc }}/">Back</a>

    {% if prev_loc or next_loc %}
        <div class="nav">
            {% if prev_loc %}
                <a class="nav-link" href="{{ base }}{{ prev_loc }}/">Previous</a>
            {% endif %}

            {% if next_loc %}
                <a class="nav-link right" href="{{ base }}{{ next_loc }}/">Next</a>
            {% endif %}
        </div>
    {% endif %}

    <div class="container">
        {% for im in images %}
            <img src="{{ base }}{{ loc }}/{{ im }}" {{ 'loading="lazy"' if loop.index != 1 }} alt="page {{ loop.index }}">
        {% endfor  %}
    </div>

    {% if prev_loc or next_loc %}
        <div class="nav" style="margin-bottom: 60px">
            {% if prev_loc %}
                <a class="nav-link" href="{{ base }}{{ prev_loc }}/">Previous</a>
            {% endif %}

            {% if next_loc %}
                <a class="nav-link right" href="{{ base }}{{ next_loc }}/">Next</a>
            {% endif %}
        </div>
    {% endif %}
</body>
</html>