grgr.me

latest commits to https://grgr.me/
Log | Files | Refs

site.tmpl (1811B)


      1 {{ define "header" }}<!doctype html>
      2 <html lang="en">
      3 <head>
      4   <meta charset="utf-8">
      5   <meta name="viewport" content="width=device-width, initial-scale=1">
      6   <title>{{ if not (.Is "index.html") }}{{ with .Title }}{{ . }} | {{ end }}{{ end }}{{ .Site.Other.Title }}</title>
      7   <link href=data:, rel=icon>
      8   <link rel="preload" as="font" type="font/woff" crossorigin href="{{ .Rel "static/charter/charter_regular.woff" }}">
      9   <link rel="preload" as="font" type="font/woff" crossorigin href="{{ .Rel "static/cooperhewitt/CooperHewitt-Book.woff" }}">
     10   <link rel="stylesheet" type="text/css" href="{{ .Rel "static/charter.css" }}">
     11   <link rel="stylesheet" type="text/css" href="{{ .Rel "static/cooperhewitt.css" }}">
     12   <link rel="stylesheet" type="text/css" href="{{ .Rel "static/style.css" }}">
     13 </head>
     14 <body>
     15 {{ end }}
     16 
     17 {{ define "footer" }}
     18 <footer>
     19 <hr>
     20 {{ if not (.Is "index.html") }}
     21   <a href="{{ .Rel "/"}}">root</a>
     22   |
     23 {{ end }}
     24   <a href="https://git.grgr.me/file/in/{{ .Source }}.html">src</a>
     25 <p>
     26 <a href="mailto:contact@grgr.me">contact@grgr.me</a><br>
     27 <a href="https://keybase.io/violinist" rel="me">keybase</a> &ndash; violinist<br>
     28 <a href="{{.Rel "/PGP"}}">PGP</a> &ndash; 8F9A 850E 9435 4903 0CB7  30F4 C466 E02A 4B21 3DB8
     29 </p>
     30 </footer>
     31 </body>
     32 </html>
     33 {{ end }}
     34 
     35 {{ define "moddate" }}
     36 <span class="bold-on-hover">
     37 Last modified: <time datetime="{{ .Format "2006-01-02" }}">{{ .Format "02 Jan 2006" }}</time>
     38 </span>
     39 {{ end }}
     40 
     41 {{ define "proseheader" }}
     42 <small>[{{ template "moddate" . }}]
     43 [<span class="bold-on-hover" id="time-to-read"></span>]</small>
     44 {{ end }}
     45 
     46 {{ define "toc" }}
     47 <details>
     48 <summary class="cooper">Contents</summary>
     49 <div id="toc"></div>
     50 </details>
     51 {{ end }}
     52 
     53 {{ define "page" }}
     54 {{ template "header" . }}
     55 <main>
     56 {{ .Content }}
     57 </main>
     58 {{ template "footer" . }}
     59 {{ end }}