mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-21 14:32:19 +00:00
fix related articles string to not include a trailing space
This commit is contained in:
parent
1f5c5f82e2
commit
491a8d14a6
3 changed files with 4 additions and 4 deletions
|
@ -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"
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue