mirror of
https://github.com/jbowdre/virtuallypotato.git
synced 2024-11-22 06:52:18 +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"
|
other = "On this page"
|
||||||
|
|
||||||
[series_posts]
|
[series_posts]
|
||||||
other = "More "
|
other = "More"
|
||||||
|
|
||||||
[all_rights]
|
[all_rights]
|
||||||
other = "All Rights Reserved"
|
other = "All Rights Reserved"
|
||||||
|
|
||||||
[powered_by]
|
[powered_by]
|
||||||
other = "Powered by Hugo, Clarity, GitLab, and Netlify"
|
other = "Powered by"
|
|
@ -1,7 +1,7 @@
|
||||||
{{ if isset .Params "series" }}
|
{{ if isset .Params "series" }}
|
||||||
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
{{$related := where .Site.RegularPages ".Params.series" "eq" .Params.series }}
|
||||||
{{- $relatedLimit := default 8 .Params.numberOfRelatedPosts }}
|
{{- $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>
|
<ul>
|
||||||
{{ range first $relatedLimit $related }}
|
{{ range first $relatedLimit $related }}
|
||||||
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
|
<li><a href="{{ .Permalink }}" class="nav-link" title="{{ .Title }}">{{ .Title }}</a></li>
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
{{ 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 }}
|
||||||
{{- $relatedLimit := default 8 $s.numberOfRelatedPosts }}
|
{{- $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>
|
<ul>
|
||||||
{{ range first $relatedLimit $related }}
|
{{ range first $relatedLimit $related }}
|
||||||
<li>
|
<li>
|
||||||
|
|
Loading…
Reference in a new issue