diff --git a/layouts/_default/summary.html b/layouts/_default/summary.html index 3708212f..8ab1eb81 100644 --- a/layouts/_default/summary.html +++ b/layouts/_default/summary.html @@ -27,7 +27,7 @@ {{- $icon | partial "plugin/icon.html" -}} {{- end -}} {{- end -}} - {{ .Title }} + {{ .LinkTitle }} {{- /* Meta */ -}} diff --git a/layouts/partials/single/collection-list.html b/layouts/partials/single/collection-list.html index b5852448..c2627591 100644 --- a/layouts/partials/single/collection-list.html +++ b/layouts/partials/single/collection-list.html @@ -4,9 +4,7 @@ {{- if .Params.collections | and $params.collectionList -}} {{- $collectionTerms := .GetTerms "collections" -}} {{- range $collectionTerms -}} - {{- $pages := .Pages -}} - {{- $prev := cond $.Site.Params.navigationReverse ($pages.Next $) ($pages.Prev $) -}} - {{- $next := cond $.Site.Params.navigationReverse ($pages.Prev $) ($pages.Next $) -}} + {{- $pages := (where .Pages "Params.Weight" "!=" nil) | append (where .Pages "Params.Weight" "eq" nil).ByDate -}} {{- $open := eq (index $collectionTerms 0) . -}} {{- $currentKey := 0 -}} @@ -30,7 +28,7 @@ {{- end -}}