small pixel drawing of a pufferfish j3s.sh

templates/layout.html

{{ define "layout" }}
<!doctype html>
<html>
<head>
  <style>
    /* this makes sure the scrollbar is always shown, so the site doesnt change between pages */
    html {
      overflow-y: scroll
    }

    #main,
    #header,
    aside,
    img {
      max-width: 500px;
      margin: 0 auto;
      padding: 0;
    }
    
    @keyframes lol {
      from{
        transform: rotate(0deg);
      }
      to {
        transform: rotate({{ randomrotationdegrees }}deg);
      }
    }

    #header img {
      animation: lol;
      animation-duration: 1s;
      animation-timing-function: ease;
      animation-fill-mode: forwards;
      animation-delay: 5s;
    }

    #header {
      font-family: monospace;
      text-align: center;
    }

    .grayscale {
      -webkit-filter: grayscale(100%);
      -moz-filter: grayscale(100%);
      -ms-filter: grayscale(100%);
      filter: grayscale(100%);
    }
  </style>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>{{template "title"}}</title>
  <link rel="alternate" title="Sitewide Atom feed" type="application/atom+xml" href="/feed.atom" />
</head>

<body class="grayscale">
  <div id="header">
    <a href="/"><img src="/static/unnamed-puffy.png" height="111" width="140" alt="pic of an unnamed pufferfish, drawn by rekka bellum of kokorobot.ca and hundred rabbits :3"></a>
    <h1>jes {{ randomheaderphrase }}</h1>
    <p>
      <a href="/now.html">now</a>
      <a href="/about.html">about</a>
      <a href="/reviews.html">reviews</a>
      <a href="/thoughts.html">thoughts</a>
      <a href="/creations.html">creations</a>
      |
      <a href="https://git.j3s.sh">git -></a>
      <a href="https://snap.as/j3s">pics -></a>
    </p>
    <hr>
  </div>
  <div id="main">
    {{ template "body" . }}
  </div>
</body>

</html>
{{ end }}