single.html 1.36 KB
Newer Older
oct8l's avatar
oct8l committed
1
2
{{ partial "header.html" . }}

3
4
5
 {{ $tNow := (.Date.Format "20060102") }}
 {{ $tMod := (.Lastmod.Format "20060102") }}

6
{{ if hasPrefix .URL "/posts/" }}
7
8
9
10
11
12
13

  {{ if (eq $tNow $tMod) }}

  <h3 class="timestamp" style="margin-bottom: 25px">Posted {{ .Date.Format "January 2, 2006" }}</h3>

  {{ else }}

oct8l's avatar
oct8l committed
14
  <h3 class="timestamp" style="margin-bottom: -20px">Posted {{ .Date.Format "January 2, 2006" }}</h3>
15

oct8l's avatar
oct8l committed
16
  <h4 class="timestamp" style="margin-bottom: 25px">Last updated {{ .Lastmod.Format "January 2, 2006" }}{{ if .IsPage }}{{ with .GitInfo }} | <a href="{{ $.Site.Params.siteRepo }}commit/{{ .Hash }}" title="{{.Subject}}">{{ .AbbreviatedHash }}</a>{{ end }}{{ end }}</h4>
17
18
19

  {{ end }}

oct8l's avatar
oct8l committed
20
21
{{ end }}

22
23
24
25
26
{{ if .Params.toc }}
  {{ partial "toc.html" . }}
{{ end }}


27
<div id="inner">
28
  {{ .Content }}
29
</div>
30

31
{{ if hasPrefix .URL "/posts/" }}
oct8l's avatar
oct8l committed
32
33

  <div id="single-bottom">
34
    <div style="margin-top: -12px;">
oct8l's avatar
oct8l committed
35
36
37
    {{ if .Params.tags }}
      {{ partial "tags.html" . }}
    {{ end }}
38
39
    </div>
    <div style="margin-top: -12px;">
40
41
42
    {{ if .Params.categories }}
      {{ partial "categories.html" . }}
    {{ end }}
43
    </div>
44

oct8l's avatar
oct8l committed
45
    {{ partial "related.html" . }}
oct8l's avatar
oct8l committed
46
    {{ partial "commento.html" . }}
oct8l's avatar
oct8l committed
47
48
  </div>

oct8l's avatar
oct8l committed
49
50
{{ end }}

51
52
53
{{ if hasPrefix .URL "/running-scripts/" }}

  <div id="single-bottom" style="padding-top: 4px;">
oct8l's avatar
oct8l committed
54
    {{ partial "commento.html" . }}
55
56
57
58
  </div>

{{ end }}

oct8l's avatar
oct8l committed
59
{{ partial "footer.html" . }}