summaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: 4fa4ee7b170ebcf0268fa138d19740fe746d6def (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
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <meta name="robots" content="noindex" />
    
    <link rel="canonical" href="$url.full$">
    <link rel="shortcut icon" href="/favicon.ico" />

    $for(author)$
        <meta name="author" content="$it.name$$if(it.email)$ <$it.email$>$endif$" />
    $endfor$
    $if(date-meta)$
        <meta name="dcterms.date" content="$date-meta$" />
    $endif$
    $if(keywords)$
        <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
    $endif$

    $for(feeds)$
        <link href="$it.url$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" />
    $endfor$
    $if(feed)$
        <link href="$feed.url.rel$" type="application/atom+xml" rel="alternate" title="$if(section.is_index)$$else$$title$ – $endif$$site.title$" />
    $endif$

    <title>$if(section.is_index)$$else$$title$ – $endif$$site.title$</title>

    <link rel="stylesheet" href="/style.css" />
</head>

<body>
    <nav class="c-nav l-container l-container--pad-x">
        <a class="c-nav__logo" href="/" title="$site.title$">
            <svg class="c-nav__logo-symbol">
                <use href="#logo"></use>
            </svg>
        </a>
        $for(menus.main.items)$
            <a class="c-nav__item $if(it.active)$c-nav__item--active$endif$" href="$it.url$">$it.label$</a>
        $endfor$
    </nav>
        
    $if(section.is_index)$
${layouts/index()}
    $elseif(layout.is_categorized_list)$
${layouts/categorized_list()}
    $else$
${layouts/page()}
    $endif$

    ${symbols.svg()}
</body>

</html>