summaryrefslogtreecommitdiff
path: root/layouts/unix-history/list.html
blob: 6295d1546ea7063ae8c4d652526e97c75174c0d6 (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
{{ define "head"}}
<a href="/">Back</a>
<hr>
{{end}}



{{ define "main" }}

{{if .Page.Content}}
  {{ .Page.Content }}
  {{- if .Params.primary_menu  }}
    {{ partial "single/bottom_nav.html" (dict "menuID" .Page.Params.primary_menu "page" .) }}
  {{- end }}

  {{ partial "single/dates.html" . }}
{{ else }}

  {{ if in .Page.Params.Categories "blog" }}
      {{ partial "partials/blog_index.html" . }}
  {{ else if in .Page.Params.Categories "article" }}
      {{ partial "partials/article_index.html" . }}
  {{ else }}

    <h2>Articles</h2>
    {{ range .Data.Pages }}
      {{ partial "partials/article_list_item.html" . }}
    {{ end }}

  {{ end }}
{{end}}

{{ end }}