aboutsummaryrefslogtreecommitdiff
path: root/template/post.html
blob: 3247d8f599e7d7fd3ea0b4c67e58ba8a9ed7764d (plain)
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
<!doctype html>
<html lang="en">

  <head>
    {{template "_meta.html"}}

    <title>{{.Title}}</title>
    <meta name="description" content="{{.Description}}">
    <meta property="og:title" content="{{.Title}}">
    <meta property="og:description" content="{{.Description}}">
  </head>

  <body>

    {{template "_navigation.html"}}

    <main class="wrapper">
      <article itemtype="http://schema.org/Article">
        <header>
          <h1 itemtype="headline">{{.Title}}</h1>
          <time>{{.CreatedFormatted}}</time>
        </header>
        <div>
          {{.Content}}
        </div>
      </article>

      {{if .Listing}}
        <section class="top-margin">
          <a href="mailto:m@mitjafelicijan.com">➝ Get in contact with me via email.</a>
        </section>

        <hr class="top-margin">

        {{if .Posts}}
          <nav class="top-margin">
            <h4>Read more from this site</h4>
            {{range $index, $post := .Posts}}
              {{if (lt $index 5)}}
              <p>
                <time>{{$post.CreatedFormatted}}</time><br>
                <a href="/{{$post.Slug}}" title="{{$post.Title}}" itemprop="url">
                  {{$post.Title}}
                </a>
              </p>
              {{end}}
            {{end}}
          </nav>
        {{end}}

        <hr class="top-margin">

        {{template "openring-build.html"}}
      {{end}}

    </main>

    {{template "_includes.html"}}

  </body>

</html>