Make "Older/Newer posts" texts configurable

This commit is contained in:
Igor Scheller 2019-02-05 13:52:17 +01:00
parent ff891dad96
commit d2c8066861
3 changed files with 6 additions and 2 deletions

View file

@ -78,6 +78,8 @@ paginate = 5
writtenBy = "Written by" writtenBy = "Written by"
readMore = "Read more" readMore = "Read more"
readOtherPosts = "Read other posts" readOtherPosts = "Read other posts"
newerPosts = "Newer posts"
olderPosts = "Older posts"
[languages.en.params.logo] [languages.en.params.logo]
logoText = "hello friend" logoText = "hello friend"

View file

@ -20,6 +20,8 @@ paginate = 5
writtenBy = "Written by" writtenBy = "Written by"
readMore = "Read more" readMore = "Read more"
readOtherPosts = "Read other posts" readOtherPosts = "Read other posts"
newerPosts = "Newer posts"
olderPosts = "Older posts"
[languages.en.params.logo] [languages.en.params.logo]
logoText = "hello friend" logoText = "hello friend"

View file

@ -4,14 +4,14 @@
<span class="button previous"> <span class="button previous">
<a href="{{ .Paginator.Prev.URL }}"> <a href="{{ .Paginator.Prev.URL }}">
<span class="button__icon"></span> <span class="button__icon"></span>
<span class="button__text">Newer posts</span> <span class="button__text">{{ $.Site.Params.NewerPosts | default "Newer posts" }}</span>
</a> </a>
</span> </span>
{{ end }} {{ end }}
{{ if .Paginator.HasNext }} {{ if .Paginator.HasNext }}
<span class="button next"> <span class="button next">
<a href="{{ .Paginator.Next.URL }}"> <a href="{{ .Paginator.Next.URL }}">
<span class="button__text">Older posts</span> <span class="button__text">{{ $.Site.Params.OlderPosts | default "Older posts" }}</span>
<span class="button__icon"></span> <span class="button__icon"></span>
</a> </a>
</span> </span>