aboutsummaryrefslogtreecommitdiff
path: root/template/post.html
blob: 461480d888172ede3afeeb4caaddae1df59910f8 (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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!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>
          {{if .Listing}}
          <time>Published on {{.CreatedFormatted}}</time>
          {{end}}
        </header>
        <div>
          {{.Content}}
        </div>
      </article>

      {{if .Listing}}

      <hr class="top-margin">

      <p class="top-margin">
        <strong>Comment, contact:</strong> You can contact me on IRC <code>irc.libera.chat:6697</code> on channel <code>#mitjafelicijan</code>.
        Or by going to <a href="https://web.libera.chat/#mitjafelicijan" target="_blank">https://web.libera.chat/#mitjafelicijan</a>.
      </p>

      <p>You can also just write me an email at m@mitjafelicijan.com</p>

      <hr class="top-margin">

      {{if .Posts}}
      <nav class="top-margin">
        <h4>Read more from this site</h4>
        {{range $index, $post := .Posts}}
          {{if .Listing}}
            {{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}}
        {{end}}
      </nav>
      {{end}}

      <hr class="top-margin">

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

      {{end}}

    </main>

    {{template "_footer.html"}}

    {{template "_includes.html"}}

    {{template "_libraries.html"}}

  </body>

</html>