summaryrefslogtreecommitdiff
path: root/lib/graphite/templates/node.ibis
blob: bf0a85a58c5801b2316c58ab95580e5acafdb253 (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
41
42
43
44
45
46
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        <title>{{ node.meta_title || node.title || site.title }}</title>
        <link rel="stylesheet" href="@root/assets/fonts.css">
        <link rel="stylesheet" href="@root/assets/graphite.css">
        <link rel="stylesheet" href="@root/assets/pygments.css">
        {% if node.meta_description %}
            <meta name="description" content="{$ node.meta_description.strip() $}">
        {% endif %}
        {{ inc.head }}
    </head>
    <body class="{$ classes|join(' ') $}">
        <header class="masthead">
            <h1><a href="@root/">{{ site.title || "Site Title" }}</a></h1>
            {% if site.tagline %}
                <p class="tagline">{{ site.tagline.strip() }}</p>
            {% endif %}
            {% if site.version %}
                <p class="version">{{ site.version.strip() }}</p>
            {% endif %}
            <nav class="menu">
                <input id="menu-check" type="checkbox"/>
                <label id="menu-label" for="menu-check" class="unselectable">
                    <span class="icon close-icon">✕</span>
                    <span class="icon open-icon">☰</span>
                    <span class="text">Menu</span>
                </label>
                {{ inc.menu || automenu }}
            </nav>
        </header>
        <article class="main">
            <header class="title">
                <h1>{{ node.title }}</h1>
                {% if node.subtitle %}
                    <p class="subtitle">{{ node.subtitle }}</p>
                {% endif %}
                <hr>
            </header>
            {{ node.html }}
        </article>
        {{ inc.foot }}
    </body>
</html>