aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/navigator-right.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-08-03 02:29:27 -0400
committertdro <tdro@noreply.example.com>2022-08-03 02:29:27 -0400
commitac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (patch)
tree302721516f10882302ab52df2af5c43c55abbd43 /themes/default/layouts/partials/navigator-right.html
parenteec7f7ea5d99e84ef2a9cf4594b18d1046ae3038 (diff)
downloadcanory-ac0e2a0c9e96cb827681ca4bdd0e727a85ee708d.tar.gz
canory-ac0e2a0c9e96cb827681ca4bdd0e727a85ee708d.tar.bz2
canory-ac0e2a0c9e96cb827681ca4bdd0e727a85ee708d.zip
themes/default/layouts/partials/navigator-right: Don't split
Use page kind to keep logic sane.
Diffstat (limited to 'themes/default/layouts/partials/navigator-right.html')
-rw-r--r--themes/default/layouts/partials/navigator-right.html30
1 files changed, 26 insertions, 4 deletions
diff --git a/themes/default/layouts/partials/navigator-right.html b/themes/default/layouts/partials/navigator-right.html
index fc598c2..01506eb 100644
--- a/themes/default/layouts/partials/navigator-right.html
+++ b/themes/default/layouts/partials/navigator-right.html
@@ -1,4 +1,26 @@
-{{- partial "author-list.html" . -}}
-{{- partial "gallery-images.html" . -}}
-{{- partial "following-list.html" . -}}
-{{- partial "web-ring.html" . -}}
+{{- partial "author-list.html" . -}}
+
+{{- if or
+ (eq .Page.Kind "page")
+ (eq .Page.Kind "section")
+-}}
+
+ {{- partial "gallery-images.html" . -}}
+ {{- partial "following-list.html" . -}}
+
+{{- end -}}
+
+{{- if or
+ (eq .Page.Kind "page")
+ (eq .Page.Kind "section")
+-}}
+
+ {{- partial "web-ring.html" . -}}
+
+{{- else -}}
+
+ {{- range first 1 (where .Site.Pages "Params.Author" .Site.Author.default.webring) -}}
+ {{- partial "web-ring.html" . -}}
+ {{- end -}}
+
+{{- end -}}