all repos — site @ master

source for my site, found at icyphox.sh

templates/index.html (view raw)

 1<!doctype html>
 2<html lang=en>
 3  <head>
 4    {{ template "partials/head.html" }}
 5    <meta name="description" content="{{ .Meta.subtitle }}">
 6  </head>
 7  <title>
 8    {{ .Meta.title }}
 9  </title>
10  <body>
11    <main>
12      <div class="sidenav">
13        {{ template "partials/nav.html" }}
14      </div>
15      <article>
16        <section class="tagline">
17        {{ .Body }}
18        </section>
19
20        <hr>
21
22        <section class="posts">
23        <h2>writing</h2>
24          <ul>
25              {{ $posts := .Extra.blog }}
26              {{ range slice $posts 0 3 }}
27                  <li>
28                    <div class="post">
29                      <a href=/blog/{{ .Meta.slug }}>{{ .Meta.title }}</a>
30                      {{ if .Meta.draft }}
31                        (<span class="draft">draft</span>)
32                      {{ end }}
33                      <p class="subtitle">{{ .Meta.subtitle }}</p>
34                    </div>
35                    {{ $dateStr := .Meta.date }}
36                    {{ $date := parsedate $dateStr }}
37                    <div class="index-date">{{ $date.Format "02 Jan, 2006" }}</div>
38                  </li>
39              {{ end }}
40            </ul>
41        <a style="border-bottom: unset;" href="/blog"><span>more &RightArrow;</span></a>
42        </section>
43      </article>
44    </main>
45    <footer>
46      {{ template "partials/footer.html" }}
47    </footer>
48  </body>
49</html>