diff options
author | tdro <tdro@noreply.example.com> | 2022-08-03 02:29:27 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-08-03 02:29:27 -0400 |
commit | ac0e2a0c9e96cb827681ca4bdd0e727a85ee708d (patch) | |
tree | 302721516f10882302ab52df2af5c43c55abbd43 /themes/default/layouts/partials/navigator-right.html | |
parent | eec7f7ea5d99e84ef2a9cf4594b18d1046ae3038 (diff) | |
download | canory-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.html | 30 |
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 -}} |