summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: b9ccef0c53c96d8530e89fd0841c0a8be9928523 (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>
    <head>
        <link rel="preconnect" href="https://fonts.googleapis.com">
        <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
        <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&display=swap" rel="stylesheet">
        <link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300..700&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">
        <link href="static/common.css" rel="stylesheet" />
        <script src="static/common.js"></script>
    </head>
    <body class="dark">
        <div id="menu" class="dark">
            <div class="control">
                <a href="/"> 
                    <img id="homeIcon" src="static/home.svg" height="40px" width="40px"> 
                </a>
                <button class="toggleBtn" onclick="ToggleMode()"> 
                    <img id="toggleIcon" src="static/toggle_dark.svg" height="48px" width="48px"> 
                </button>
            </div>
            <h2> Recent articles </h2>
            <ul class="articleList dark">
                {{ range .LastArticles}} 
                <li> <a href={{ .Link }}> {{ .DisplayName }} </a> </li>
                {{ end }}
            </ul>
            <hr />
        </div>
        <div id="content" class="dark">
            {{.Content}}
        </div>
    </body>

    <script>
        deleteTrailingSpaces();
        setMode();
    </script>
</html>