fix related articles string to not include a trailing space

This commit is contained in:
John Bowdre 2021-12-17 10:01:15 -06:00
parent 1f5c5f82e2
commit 491a8d14a6
3 changed files with 4 additions and 4 deletions

View file

@ -2,10 +2,10 @@
other = "On this page"
[series_posts]
other = "More "
other = "More"
[all_rights]
other = "All Rights Reserved"
[powered_by]
other = "Powered by Hugo, Clarity, GitLab, and Netlify"
other = "Powered by"

View file

@ -1,7 +1,7 @@
{{ if isset .Params "series" }}
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
{{- $relatedLimit := default 8 .Params.numberOfRelatedPosts }}
<h2 class="post_related">{{ T "series_posts" }}{{ .Params.series }}</h2>
<h2 class="post_related">{{ T "series_posts" }} {{ .Params.series }}</h2>
<ul>
{{ range first $relatedLimit $related }}
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>

View file

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