all repos — site @ ad301757b66840fb19004c031402c9b133f7b95b

source for my site, found at icyphox.sh

templates/index.html (view raw)

 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
<!DOCTYPE html>
<html lang=en>
  <head>
    <link rel="stylesheet" href="/static/style.css" type="text/css">
    <link rel="alternate" type="application/rss+xml" title="RSS" href="https://icyphox.sh/blog/feed.xml"> 
    <meta name="description" content="{{ .Fm.Subtitle }}">
    <meta name="viewport" content="initial-scale=1,width">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="UTF-8">
    <meta name="HandheldFriendly" content="true">
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon.png">
    <meta name="theme-color" content="#ffffff">
  </head>

  <title>
    {{ .Fm.Title }}
  </title>
<body>
  <main> 
    <header>
      {{ .Cfg.Header }}
    </header>
    {{ .Fm.Body }}
    <table>
      {{ $datefmt := .Cfg.DateFmt }}
      {{ range $_, $post := .Posts }}
      <tr>
        <td align="left" class="index-post">
          <a href="/blog/{{ $post.Fm.URL }}">{{ $post.Fm.Title }}</a>
        </td>
        <td align="right" class="index-date">{{ $post.Fm.Date.Format $datefmt }}</td>
      </tr>
      {{ end }}
    </table>
    <p><em><b>Note</b>: Opinions expressed in these posts may differ from those that I hold presently.</em></p>
    </section>
  </main>
  <footer>
    {{ .Cfg.Footer }}
  </footer>
</body>

</html>