summaryrefslogtreecommitdiffstats
path: root/templates/base.html
blob: cfc40a46522f153954e7a9b707a9ad59ee8451da (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<!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" />
    $if(redirect)$
        <meta http-equiv="refresh" content="3; URL=$url.full$">
    $endif$
    
    <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$" />
        <meta property="article:author" content="$it.name$$if(it.email)$ <$it.email$>$endif$" />
    $endfor$
    $if(date-meta)$
        <meta name="dcterms.date" content="$date-meta$" />
        <meta property="article:modified_time" content="$date-meta$" />
    $endif$
    $if(keywords)$
        <meta name="keywords" content="$for(keywords)$$keywords$$sep$, $endfor$" />
    $endif$

	<meta property="og:title" content="$title$" />
	<meta property="og:site_name" content="$site.title$" />
	<meta property="og:url" content="$url.full$" />

    $if(feed)$
        <link href="$feed.url.rel$" type="application/atom+xml" rel="alternate" title="$if(namespace.root.is_index)$$else$$title$ – $endif$$site.title$" />
    $endif$
    $if(layout.is_categorized_list)$
        $for(pages.all)$
            $if(it.feed)$
                <link href="$it.feed.url.rel$" type="application/atom+xml" rel="alternate" title="$it.title$ – $site.title$" />
            $endif$
        $endfor$
    $endif$

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

    <link rel="preload" href="/style.css?$style_hash$" as="style" />
    <link rel="preload" href="/IBMPlexSans-Regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
    <link rel="preload" href="/IBMPlexSans-Bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
    <link rel="preload" href="/IBMPlexSans-Italic.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
    <link rel="preload" href="/GaretVariable.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
    <link rel="preload" href="/iosevka-term-ss09-regular.woff2" as="font" type="font/woff2" crossorigin="anonymous" />
    <link rel="preload" href="/iosevka-term-ss09-bold.woff2" as="font" type="font/woff2" crossorigin="anonymous" />

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

<body itemscope itemtype="https://schema.org/WebPage">
    <nav class="c-header" label="Mainmenu">
        <a class="c-header__item c-header__item--icon" href="/" title="$site.title$" itemprop="isPartOf" itemscope itemtype="https://schema.org/WebSite" itemid="$site.url$">
            <svg class="c-header__icon" width="1em" height="1em" aria-label="Logo">
                <use href="/symbols.svg#logo"></use>
            </svg>
        </a>
        $for(menus.main.items)$
            $if(it.active)$
                <a class="c-header__item" href="$it.url$" itemprop="hasPart" itemscope itemtype="https://schema.org/SiteNavigationElement">
                    $it.label$
                </a>
            $endif$
        $endfor$
    </nav>

    $if(layout.is_categorized_list)$
${layouts/categorized_list()}
    $elseif(layout.is_list)$
${layouts/list()}
    $elseif(layout.is_redirect)$
${layouts/redirect()}
    $else$
${layouts/page()}
    $endif$

    <footer class="c-footer">
        <div class="l-container l-container--pad-y u-pb-0" aria-hidden="true">
            <pre class="c-footer__ascii u-d-none@sm-lo">${partials/ascii_fox()}</pre>
            <pre class="c-footer__ascii u-d-none@sm-hi">${partials/ascii_fox_small()}</pre>
        </div>
    </footer>

    <div class="o-backdrop js-lightbox u-d-none t-dark">
        <div class="o-lightbox">
            <button class="o-lightbox__close-btn o-action-button o-action-button--quiet o-action-button--round">
                <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                    <use href="/icons.svg#x"></use>
                </svg>
            </button>

            <img class="o-lightbox__img" />

            <button class="o-lightbox__prev-btn o-action-button o-action-button--quiet o-action-button--round">
                <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                    <use href="/icons.svg#chevron-left"></use>
                </svg>
            </button>

            <button class="o-lightbox__next-btn o-action-button o-action-button--quiet o-action-button--round">
                <svg class="l-media__block o-icon" width="1em" height="1em" aria-hidden="true">
                    <use href="/icons.svg#chevron-right"></use>
                </svg>
            </button>

            <footer class="o-lightbox__footer"></footer>
        </div>
    </div>

    <script src="/main.js"></script>
    <!--script src="/snow.js"></script-->
</body>

</html>