aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: a4e8a5dc542ee98d1f5b8f618a38883e9efd7429 (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
46
47
48
<!DOCTYPE html>
<html lang="en">
    <title>{{ domain }}/{{ title }}</title>
    <head>
        <base target="_blank">
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
        <meta name="description" content="{{ description }}"/>
        <meta name="author" content="mjfernez">
        <!--<meta name="viewport" content="width=device-width,
            initial-scale=1.0"/> -->
        <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"/>
        {% block css%}
        <link rel="stylesheet" type="text/css" href="/static/main.css">
        <link rel="icon" href="/favicon.ico">
        <link rel="canonical" href="https://mjfer.net/">
        {% endblock %}
    </head>
    <body><center>
        <h1><a href="/" target="_self">{{ domain }}</a></h1>
        <!-- Add icons here -->
        <a href="/files/latest.html" target="_self" rel="noopener noreferrer">
        <img class="icon" src="/static/media/newspaper.svg"></a>&nbsp;
        <a href="/feed.xml" target="_blank" rel="noopener noreferrer">
        <img class="icon" src="/static/media/rss.svg"></a>&nbsp;
        <a href="mailto:mjf@mjfer.net"><img class="icon" src="/static/media/email.svg"></a>
        <br>
        <!-- navbar -->
        <div class="navbar">
        <b>|</b> <!-- This makes the bar symmetrical -->
        {% for dir in navbar %}
        <b> <a href="/{{ dir }}" target="_self">{{ dir }}/</a> |</b>
        {% endfor %}
        </div>
        <h2 class="center">{{ title }}</h2>
        <div class="content">
            {% block content %}
            {% endblock %}
            <h3 class="center">{{ errors }}</h3>
            {% if parent_dir  %}
            <h3 class="center"><a href="{{ parent_dir }}" target="_self">Go up to parent folder ({{ parent_dir }})</a></h3>
            {% endif %}
        </div>
        {% if last_update %}
        <p>Last update: {{ last_update }}</p>
        {% endif %}
        <div class="license">{% include 'site/license.html' %}</div>
        </center></body>
</html>