{{ $comics := ($.Site.GetPage "section" .Section).Pages.ByPublishDate }}
{{ $random := (shuffle (where (where .Site.RegularPages "Section" "comics") "Title" "!=" .Title )) }}
{{ if (eq .PrevInSection nil) }}
{{ end }}
{{ with .PrevInSection }}
{{ range first 1 $comics }}
{{ end }}
{{ end }}
{{ range first 1 $random }}
{{ end }}
{{ with .NextInSection }}
{{ range last 1 $comics }}
{{ end }}
{{ end }}
{{ if (eq .NextInSection nil) }}
{{ end }}