summaryrefslogtreecommitdiff
path: root/src/_layouts/base.njk
blob: cc89f998a001c44bbe49f940138e051437f6a00b (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
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="icon" href="https://adelie.liz.coffee/img/favicon.ico" />
  <title>{% if title %}{{ title }} - {% endif %}liz.coffee</title>
  <link rel="stylesheet" href="https://adelie.liz.coffee/bundle.css">
  <link rel="alternate" type="application/atom+xml" title="liz.coffee" href="/feed.xml">
  <style>
    .blinkie {
      image-rendering: optimizeSpeed;
      image-rendering: -moz-crisp-edges;
      image-rendering: -o-crisp-edges;
      image-rendering: -webkit-optimize-contrast;
      image-rendering: pixelated;
      image-rendering: optimize-contrast;
      -ms-interpolation-mode: nearest-neighbor;
      width: 150px;
      height: 20px;
    }
    .blinkies {
      display: flex;
      justify-content: left;
      flex-wrap: wrap;
      max-width: 900px;
      gap: 10px 10px;
    }
    .blinkie-linky:hover {
      text-decoration: none !important;
    }
  </style>
  {% if pageStyles %}
  <style>{{ pageStyles | safe }}</style>
  {% endif %}
</head>
<body>
  <header>
    <nav>
      <a href="/">Home</a>
      <a href="/about">About</a>
      <a href="/blog">Blog</a>
      <a href="/resume">Resume</a>
    </nav>
    <input type="checkbox" id="theme-toggle" class="toggle" aria-label="Toggle dark mode" />
  </header>
  <main>
    <article>
      {{ content | safe }}
    </article>
  </main>
  <footer>
    <div class="blinkies">
      <a class="blinkie-linky" href="https://liz.coffee">
        <img class="blinkie" src="https://adelie.liz.coffee/img/blinkies/liz--coffee.gif">
      </a>

      <img class="blinkie" src="https://adelie.liz.coffee/img/blinkies/boys.gif">
    </div>
    <div class="text-center">
      <img width="100" src="/assets/penguin.gif" />
      <p>add <a href="/blinkies/add">your very own blinkie</a>!</p>
    </div>
  </footer>

  <script src="https://adelie.liz.coffee/bundle.js"></script>
  {% if pageScripts %}
  <script>{{ pageScripts | safe }}</script>
  {% endif %}
</body>
</html>