From 3483f16f211adb574da8032f7901b59a5210497c Mon Sep 17 00:00:00 2001 From: Artem Khvastunov Date: Tue, 2 Apr 2019 01:11:27 +0200 Subject: [PATCH] don't show empty See also for series (#166) If series consists only of the current page it doesn't make sense to show an empty See also block. --- layouts/partials/posts/series.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/posts/series.html b/layouts/partials/posts/series.html index 3bdb9e6..bc0239c 100644 --- a/layouts/partials/posts/series.html +++ b/layouts/partials/posts/series.html @@ -2,10 +2,10 @@ {{ if .Params.series }}
{{ range .Params.series }} -

See also in {{ . }}

{{ $name := . | urlize }} {{ $series := index $.Site.Taxonomies.series $name }} - {{ if gt (len $series.Pages) 0 }} + {{ if gt (len $series.Pages) 1 }} +

See also in {{ . }}