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