aboutsummaryrefslogtreecommitdiff
path: root/templates/base.html
blob: efdf072f2ae8ab2e71633ed00caa2bae4f7505e2 (plain) (blame)
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
<!DOCTYPE html>
<html lang="ru">

<head>
    <!-- Meta tags -->
    <meta content="IE=edge" http-equiv="X-UA-Compatible" />
    <meta content="width=device-width, initial-scale=1" name="viewport" />
    <meta content="text/html; charset=utf-8" http-equiv="content-type" />

    <!-- CSS -->
    <link href="{{ get_url(path='styles.css', trailing_slash=false, cachebust=true) | safe }}" rel="stylesheet" />

    {% block rss %}
    <!-- RSS -->
    <link href="{{ get_url(path='atom.xml', trailing_slash=false) | safe }}" rel="alternate" title="RSS" type="application/atom+xml" />
    {% endblock %}

    <title>{{ config.title | safe }}</title>
</head>

<body>
    <header>
        <nav>
            {% for link in config.extra.navbar %}
            <a href="{{ link.path | safe }}"> {{ link.title | safe }}</a>
            {% endfor %}

            <span>
                <span>|</span>
                <a href="{{ get_url(path='atom.xml', trailing_slash=false) | safe }}">RSS</a>
            </span>
        </nav>
    </header>

    <article>
        {% block content %}{% endblock %}
    </article>
</body>

</html>