aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/_default/index.html
blob: 37c985557ecd9d12565cc89ef670acf58e8d3195 (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
{{ define "styles" }}
<style>
  {{ partial "styles-navigator.html" (dict "Link" "/") | safeCSS }}
</style>
{{ end }}

{{ define "middle" }}

  {{- if gt .Paginator.PageNumber 1 -}}
    {{- partial "navigator-middle.html"
      (dict
        "Context"   .
        "Href"      "/"
        "Icon"      "arrow-left"
        "IconLabel" "Back"
        "Id"        "back"
        "Title"     "Home"
        "Subtitle"  (partial "count-total-messages.html" .)
      )
    -}}
  {{- else -}}
    {{- partial "navigator-middle.html"
      (dict
        "Context" .
        "Subtitle" (partial "count-total-messages.html" .)
        "Title" "Home"
      )
    -}}
  {{- end -}}

  {{ range .Paginator.Pages }}
    {{ .Render "summary" }}
  {{ end }}

  {{ partial "pagination.html" . }}

{{ end }}

{{ define "right" }}
  {{- partial "author-list.html" . -}}

  {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.gallery) }}
    {{- partial "gallery.html" . -}}
  {{ end }}

  {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) }}
    {{- partial "following-list.html" . -}}
    {{- partial "webring.html"        . -}}
  {{ end }}

{{ end }}