aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: b8f9213f9310d25ef8fb218033a73c5723d85aea (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
49
50
<!doctype html>
<html lang="en" class="h-feed">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta class="p-author" name="author" content="Rubén Beltrán del Río">
    <meta name="description" content="This is the blog at unlimited.pizza">

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

    <title class="p-name">Blog at Unlimited Pizza 🍕</title>

    <script src="/js/blog.js"></script>

    <link href="/css/style.css" rel="stylesheet">
    <link href="/feed.xml" rel="alternate" hreflang="en" title="RSS feed">

    <script type="module" src="//unlimited.pizza/js/animation.js"></script>

  </head>
  <body>
    <header aria-label="Logo" class="main-header">
      <h1>
        <canvas width=100 height=100></canvas>
        <a href="/">blog.unlimited.pizza</a>
      </h1>
    </header>
    <main>
    <p>
    This blog is also available in <a href="/index.txt">plain text</a>.
    </p>
    <p>
    → <a href="http://unlimited.pizza">home</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>Only 3 entries kept at any time. Press 1, 2, and 3 to switch. <a href="https://unlimited.pizza">unlimited.pizza</a></p>
    </footer>
  </body>
</html>