summaryrefslogtreecommitdiff
path: root/clams-server/src/main/resources/templates/blog.html
blob: 168cfe11ee9c95edc4df2a3d45360304d14d7c2e (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
39
40
41
42
43
44
45
46
47
48
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>Elias Haugsbakk's Blog</title>
    <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/blog.css">
</head>
<body>

<main class="main-container">
    <header>
        <h1>Elias Haugsbakk's Blog</h1>
        <p class="intro-text">This is the home page for my blog. The list of blog posts is a diverse collection of some of my writings; if you're just browsing, this might be a good place to start.</p>

        <form action="/blog" method="GET" class="search-form">
            <input type="text" name="search" value="{{ search_value }}" placeholder="Search posts..." aria-label="Search blog posts">
            <button type="submit">Search</button>
        </form>
    </header>

    <div class="content-grid">
        <div class="left-column">
            <section id="all">
                <h2>{{ all_posts_title }}</h2>
                <!-- Tells Pebble to trust your pre-grouped HTML links -->
                {{ all_posts_by_year | raw }}
            </section>
        </div>

        <div class="right-column">
            <section id="recent">
                <h2>Recent</h2>
                {{ recent_posts | raw }}
            </section>
        </div>
    </div>
</main>

<footer>
    <p>
        <span class="footer-left"><a href="/">eliashaugsbakk.xyz</a></span>
        <span class="footer-separator">|</span>
        <span class="footer-right"><a href="mailto:[email protected]">[email protected]</a></span>
    </p>
</footer>
</body>
</html>