diff --git a/bom-website/themes/dbn/layouts/context/list.html b/bom-website/themes/dbn/layouts/context/list.html index f54a9aee..8c9be553 100644 --- a/bom-website/themes/dbn/layouts/context/list.html +++ b/bom-website/themes/dbn/layouts/context/list.html @@ -1,57 +1,38 @@ {{ define "main" }}
-
+

{{ .Title }}

-
-
-
+
+ +
+
+ {{ .Content }} +
+
+ + +
+ +
+

Recent Writings

{{ range where (.Paginator 4).Pages "Params.categories" "intersect" (slice "context") }} -
-
-
-

{{ .Title }}

-
-
- by - {{ range $i, $e := .Params.author }}{{ if $i }}, {{ end }}{{ $e }}{{ end }} -
- {{.Date.Format "2006-01-02"}} -
-
- - - - - {{ range .Params.categories }} - {{ . }} - {{ end }} - +
+
+

{{ .Title }}

+
+
+ by {{ range $i, $e := .Params.author }}{{ if $i }}, {{ end }}{{ $e }}{{ end }}
-

- {{.Summary }} - {{ if .Truncated }} -

- {{ end }} -

+
{{ .Date.Format "2006-01-02" }}

{{ end }}
-
-
-
-
- {{ .Content }} -
+

{{ .Title }} Tags

{{ if ne (len $.Site.Taxonomies.tags) 0 }} {{ $largestFontSize := 1.3 }} @@ -92,140 +73,10 @@

{{ .Title }} Tags

No tags found.

{{ end }}
+
- - - {{ $paginator := .Paginator }} - - - {{ $adjacent_links := 2 }} - - - {{ $max_links := (add (mul $adjacent_links 2) 1) }} - - - {{ $lower_limit := (add $adjacent_links 1) }} - - - {{ $upper_limit := (sub $paginator.TotalPages $adjacent_links) }} - -
- - - {{ if gt $paginator.TotalPages 1 }} - -
    - - - - {{ if ne $paginator.PageNumber 1 }} -
  • - - «« - -
  • - {{ end }} - - - {{ if $paginator.HasPrev }} -
  • - - « - -
  • - {{ end }} - - - {{ range $paginator.Pagers }} - - {{ $.Scratch.Set "page_number_flag" false }} - - - - {{ if gt $paginator.TotalPages $max_links }} - - - - - {{ if le $paginator.PageNumber $lower_limit }} - - - {{ if le .PageNumber $max_links }} - {{ $.Scratch.Set "page_number_flag" true }} - {{ end }} - - - - - {{ else if ge $paginator.PageNumber $upper_limit }} - - - {{ if gt .PageNumber (sub $paginator.TotalPages $max_links) }} - {{ $.Scratch.Set "page_number_flag" true }} - {{ end }} - - - - {{ else }} - - {{ if and ( ge .PageNumber (sub $paginator.PageNumber $adjacent_links) ) ( le .PageNumber (add - $paginator.PageNumber $adjacent_links) ) }} - {{ $.Scratch.Set "page_number_flag" true }} - {{ end }} - - {{ end }} - - - - {{ else }} - - {{ $.Scratch.Set "page_number_flag" true }} - - {{ end }} - - - {{ if eq ($.Scratch.Get "page_number_flag") true }} -
  • - - {{ .PageNumber }} - -
  • - {{ end }} - - {{ end }} - - - {{ if $paginator.HasNext }} -
  • - - » - -
  • - {{ end }} - - - {{ if ne $paginator.PageNumber $paginator.TotalPages }} -
  • - - »» - -
  • - {{ end }} - -
- {{ end }} -
- - -
-
{{ end }}