fix related header on sidebar

This commit is contained in:
John Bowdre 2024-05-30 16:29:22 -05:00
parent 526985d293
commit 9c18281781

View file

@ -11,7 +11,7 @@
{{$related := where .Site.RegularPages ".Params.categories" "eq" .Params.categories }}
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
{{ if eq .Params.categories "slashes" }}
<h3>More {{ .Params.categories }}</h3>
<h3>More /slashes</h3>
{{ $sortedPosts := sort $related "Title" }}
<ul>
{{- range $sortedPosts }}
@ -21,7 +21,7 @@
{{ end }}
</ul>
{{ else }}
<h3>More /slashes</h3>
<h3>More {{ .Params.categories }}</h3>
<ul>
{{- range first $relatedLimit $related }}
<li>