aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: f1967e46c374574f98a6e03950b83c72e2fcf769 (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
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="My ephemeral blog">

    <meta name="theme-color" content="#ffffff">

    <title class="p-name">My Ephemeral Blog</title>

    <link href="./feed.xml" rel="alternate" hreflang="en" title="RSS feed">
  </head>
  <body>
    <header>
      <h1>
        <a href="./">My Ephemeral Blog</a>
      </h1>
    </header>
    <main>
    <p>
    Only 3 posts kept at a time.
    This blog is also available in <a href="./index.txt">txt</a>
    and <a href="./feed.xml">rss</a>
    </p>
    {{~ it.posts: post}}
      <article class="h-entry" id="{{= post.index + 1}}">
        {{= post.html}}
      </article>
      <hr class="separator">
    {{~}}
    {{? it.posts.length === 0}}
      <h1>This is a fresh blog!</h1>
      <p>There are no posts yet.</p>
    {{?}}
    </main>
    <footer>
      <p>Press 1, 2, and 3 to switch.</p>
    </footer>
  </body>
</html>