diff --git a/README.md b/README.md index 65663c4..47e0681 100644 --- a/README.md +++ b/README.md @@ -78,6 +78,8 @@ paginate = 5 writtenBy = "Written by" readMore = "Read more" readOtherPosts = "Read other posts" + newerPosts = "Newer posts" + olderPosts = "Older posts" [languages.en.params.logo] logoText = "hello friend" diff --git a/exampleSite/config.toml b/exampleSite/config.toml index 7573f11..e315abf 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -20,6 +20,8 @@ paginate = 5 writtenBy = "Written by" readMore = "Read more" readOtherPosts = "Read other posts" + newerPosts = "Newer posts" + olderPosts = "Older posts" [languages.en.params.logo] logoText = "hello friend" diff --git a/layouts/partials/pagination.html b/layouts/partials/pagination.html index ec762d3..55c8b57 100644 --- a/layouts/partials/pagination.html +++ b/layouts/partials/pagination.html @@ -4,14 +4,14 @@ - Newer posts + {{ $.Site.Params.NewerPosts | default "Newer posts" }} {{ end }} {{ if .Paginator.HasNext }} - Older posts + {{ $.Site.Params.OlderPosts | default "Older posts" }}