blob: 52544bfaa91861852f32ea712107953d39a05aa4 (
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
|
{{ define "main" }}
<article>
<h2>{{ .Page.Title }}</h2>
{{- if not (eq .Page.Type "special") }}
<time datetime="{{.PublishDate.Format "2006-01-02" }}">
{{ .PublishDate.Format "January 2, 2006" }}
</time>
{{- end }}
{{ .Page.Content }}
{{- if not (in .Params.category "pages") }}
<aside>
{{- if isset .Params "tags" -}}
{{- $tagsLen := len .Params.tags -}}
{{- if gt $tagsLen 0 -}}
<h3>Tags</h3>
{{- range $k, $v := .Params.tags -}}
{{- $url := printf "tags/%s" (. | urlize | lower) -}}
<a href="{{ $url | absURL }}"> {{ . | title }}</a>
{{- if lt $k (sub $tagsLen 1) }} · {{ end -}}
{{- end -}}
{{- end -}}
</aside>
{{- end }}
{{- 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 }}
|