Replaced 'Posts in this series' on sidebar with 'Posts in [name_of_series]

This commit is contained in:
John Bowdre 2021-12-16 10:30:50 -06:00
parent bf5f99bf61
commit 74bae5736d
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
[overview] [overview]
other = "In this thread" other = "In this thread"
[series_posts]
other = "Posts in "

View file

@ -42,7 +42,7 @@
{{- end }} {{- end }}
{{ if (and ($relatedInSidebar) (isset .Params "series") ) }} {{ if (and ($relatedInSidebar) (isset .Params "series") ) }}
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }} {{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
<h2 class="mt-4">{{ T "series_posts" }}</h2> <h2 class="mt-4">{{ T "series_posts" }}{{ .Params.series }}</h2>
<ul> <ul>
{{ range $related }} {{ range $related }}
<li> <li>