From aa865a9aa0f94e9e550bc761f18268e206bd1c48 Mon Sep 17 00:00:00 2001 From: tdro Date: Mon, 6 Jun 2022 18:29:36 -0400 Subject: themes/default/layouts/partials/navigator-right: Speed up render layout calculation Move easier to render author list to the top and help speed up three column flex layout calculation. --- themes/default/layouts/_default/list.html | 7 ++++--- themes/default/layouts/partials/navigator-right.html | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/themes/default/layouts/_default/list.html b/themes/default/layouts/_default/list.html index 6cc82b2..5cc563b 100644 --- a/themes/default/layouts/_default/list.html +++ b/themes/default/layouts/_default/list.html @@ -23,13 +23,14 @@ {{ end }} {{ define "right" }} + {{- partial "author-list.html" . -}} + {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.picturegallery) }} {{- partial "gallery-images.html" . -}} {{ end }} - {{- partial "author-list.html" . -}} - {{ range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) }} - {{- partial "web-ring.html" . -}} + {{- partial "web-ring.html" . -}} {{ end }} + {{ end }} diff --git a/themes/default/layouts/partials/navigator-right.html b/themes/default/layouts/partials/navigator-right.html index 4cbcfac..abe0d28 100644 --- a/themes/default/layouts/partials/navigator-right.html +++ b/themes/default/layouts/partials/navigator-right.html @@ -1,3 +1,3 @@ -{{- partial "gallery-images.html" . -}} {{- partial "author-list.html" . -}} +{{- partial "gallery-images.html" . -}} {{- partial "web-ring.html" . -}} -- cgit v1.2.3