-
- {{ range .Paginator.Pages }}
+ {{ range $paginator.Pages }}
{{ partial "article-list/compact" . }}
{{ end }}
diff --git a/layouts/_default/term.html b/layouts/_default/term.html
deleted file mode 100644
index 3bfcc28..0000000
--- a/layouts/_default/term.html
+++ /dev/null
@@ -1,37 +0,0 @@
-{{ define "main" }}
-
- {{ $v2 := where .Pages "Params.hidden" "!=" true }}
- {{ $pag := .Paginate (.Pages) }}
- {{ range $pag.Pages }}
- {{ partial "article-list/compact" . }}
- {{ end }}
-
-
- {{- partial "pagination.html" . -}}
-
- {{ partialCached "footer/footer" . }}
-{{ end }}
\ No newline at end of file
diff --git a/layouts/index.html b/layouts/index.html
index b04b926..576faef 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -11,7 +11,7 @@
{{- partial "pagination.html" . -}}
- {{ partialCached "footer/footer" . }}
+ {{- partial "footer/footer" . -}}
{{ end }}
{{ define "right-sidebar" }}
diff --git a/layouts/page/search.html b/layouts/page/search.html
index 6078ac1..259d398 100644
--- a/layouts/page/search.html
+++ b/layouts/page/search.html
@@ -7,8 +7,8 @@
{{ define "main" }}
{{ .Title }}
++ {{ if eq .Parent (.GetPage "/") }} + {{ T "list.section" }} + {{ else }} + {{ .Parent.Title }} + {{ end }} +
+ +
+
+ {{ $subsections := .Sections }}
+ {{ with $subsections }}
+
+
+
+ {{- $image := partialCached "helper/image" (dict "Context" . "Type" "section") .RelPermalink "section" -}}
+ {{ if $image.exists }}
+ {{ T "list.page" (len .Pages) }}
+{{ .Title }}
+ {{ with .Params.description }} +{{ . }}
+ {{ end }} +
+ {{ if $image.resource }}
+ {{- $Permalink := $image.resource.RelPermalink -}}
+ {{- $Width := $image.resource.Width -}}
+ {{- $Height := $image.resource.Height -}}
+
+ {{- if (default true .Page.Site.Params.imageProcessing.cover.enabled) -}}
+ {{- $thumbnail := $image.resource.Fill "120x120" -}}
+ {{- $Permalink = $thumbnail.RelPermalink -}}
+ {{- $Width = $thumbnail.Width -}}
+ {{- $Height = $thumbnail.Height -}}
+ {{- end -}}
+
+
+ {{ else }}
+
+ {{ end }}
+
+ {{ end }}
{{ T "list.subsection" (len $subsections) }}
+
+
+ {{ end }}
+
+ {{/* List only pages that are not a subsection */}}
+ {{ $paginator := .Paginate (.Pages | complement $subsections) }}
+ {{ range . }}
+ {{ partial "article-list/tile" (dict "context" . "size" "250x150" "Type" "section") }}
+ {{ end }}
+
+ {{ .Type | singularize | humanize }}
-
-
-
-
-
-
- {{- $image := partialCached "helper/image" (dict "Context" . "Type" "taxonomy") .RelPermalink "taxonomy" -}}
- {{ if $image.exists }}
- {{ len .Pages }} post{{ if gt (len .Pages) 1 }}s{{ end }}
-{{ .Title }}
- {{ with .Params.description }} -{{ . }}
- {{ end }} -
- {{ if $image.resource }}
- {{- $thumbnail := $image.resource.Fill "120x120" -}}
-
- {{ else }}
-
- {{ end }}
-
- {{ end }}
-