summaryrefslogtreecommitdiff
path: root/layouts/_default/single.html
blob: 5886803a6da0622263a2260c700eb7af9595938c (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
{{ define "main" }}
<article>
  <br>
  {{- if not (eq .Page.Type "special") }}
  {{ if in .Page.Params.category "star-trek" }}
  Earthdate
  {{ end }}
  <time datetime="{{.PublishDate.Format "2006-01-02" }}">
    {{ .PublishDate.Format "January 2, 2006" }}
  </time>
  {{- end  }}

  {{ .Page.Content }}

  {{- if not (in .Params.category "pages") }}
  {{- if not (eq .Page.Type "special") }}
  <aside>
    <h3>Author</h3>
    <p>
      Hey! I'm Michał Sapka, a computer programmer living in Kraków, Poland. This website is not dedicated to any particular one thing. Instead, I write whatever interests me most at the moment. No content here is auto-generated, so any bugs, problems, or controversies are entirely on me!
    </p>
    <p>
      I don't have any commenting system, but comments over <a href="/about#contact">email</a> are more than welcome!
    </p>
  </aside>
  {{- end }}
</article>
{{ end }}
{{ end }}