mirror of
https://github.com/jbowdre/runtimeterror.git
synced 2024-11-09 17:42:19 +00:00
fix related header on sidebar
This commit is contained in:
parent
526985d293
commit
9c18281781
1 changed files with 2 additions and 2 deletions
|
@ -11,7 +11,7 @@
|
||||||
{{$related := where .Site.RegularPages ".Params.categories" "eq" .Params.categories }}
|
{{$related := where .Site.RegularPages ".Params.categories" "eq" .Params.categories }}
|
||||||
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
{{- $relatedLimit := default 8 .Site.Params.numberOfRelatedPosts }}
|
||||||
{{ if eq .Params.categories "slashes" }}
|
{{ if eq .Params.categories "slashes" }}
|
||||||
<h3>More {{ .Params.categories }}</h3>
|
<h3>More /slashes</h3>
|
||||||
{{ $sortedPosts := sort $related "Title" }}
|
{{ $sortedPosts := sort $related "Title" }}
|
||||||
<ul>
|
<ul>
|
||||||
{{- range $sortedPosts }}
|
{{- range $sortedPosts }}
|
||||||
|
@ -21,7 +21,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</ul>
|
</ul>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<h3>More /slashes</h3>
|
<h3>More {{ .Params.categories }}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{- range first $relatedLimit $related }}
|
{{- range first $relatedLimit $related }}
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in a new issue